UpdateEventCollection.IndexOf Method (IUpdateEvent)
Applies To: Windows Server Update Services
Determines if the collection contains the specified update event. If the collection contains the event, the method returns the zero-based index to the event in the collection.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
public int IndexOf(
IUpdateEvent value
)
public:
int IndexOf(
IUpdateEvent^ value
)
member IndexOf :
value:IUpdateEvent -> int
Public Function IndexOf (
value As IUpdateEvent
) As Integer
Parameters
value
Type: Microsoft.UpdateServices.Administration.IUpdateEventAn IUpdateEvent of the event to locate in the collection.
Return Value
Type: System.Int32
Zero-based index of the event in the collection if found; otherwise, -1.
See Also
IndexOf Overload
UpdateEventCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top