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