共用方式為


ComputerTargetGroupCollection.IndexOf Method (IComputerTargetGroup)

 

Applies To: Windows Server Update Services

Determines whether the collection contains the specified computer target group. If it does, the method returns the zero-based index of the first occurrence of the group in the collection.

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

Syntax

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

Parameters

Return Value

Type: System.Int32

The zero-based index of the first occurrence of value in the collection, if found; otherwise, -1.

See Also

IndexOf Overload
ComputerTargetGroupCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top