WsusCollection.IndexOf Method (Object)
Applies To: Windows Server Update Services
Searches for the specified element and returns the zero-based index of it if it exists.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
protected int IndexOf(
object value
)
protected:
int IndexOf(
Object^ value
)
member IndexOf :
value:Object -> int
Protected Function IndexOf (
value As Object
) As Integer
Parameters
value
Type: System.ObjectThe Update to locate.
Return Value
Type: System.Int32
zero-based index of the first occurrence of value in the collection, if found; otherwise, -1.
Exceptions
Exception
Condition
value is a null reference (Nothing in Visual Basic).
See Also
WsusCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top