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