Compartilhar via


UpdateCollection.IndexOf Method (IUpdate)

 

Applies To: Windows Server Update Services

Determines if the collection contains the specified update. If the collection contains the update, the method returns the zero-based index to the update in the collection.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

public int IndexOf(
    IUpdate value
)
public:
int IndexOf(
    IUpdate^ value
)
member IndexOf : 
        value:IUpdate -> int
Public Function IndexOf (
    value As IUpdate
) As Integer

Parameters

Return Value

Type: System.Int32

Zero-based index of the update in the collection if found; otherwise, -1.

See Also

IndexOf Overload
UpdateCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top