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