ComputerTargetCollection.Item Property (Int32)
Applies To: Windows Server Update Services
Retrieve or set the element at the specified index.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
public IComputerTarget this[
int index
] { get; set; }
public:
property IComputerTarget^ default[
int index
] {
IComputerTarget^ get(int index);
void set(int index, IComputerTarget^ value);
}
member Item :
index:int -> IComputerTarget with get, set
Public Property Item (
index As Integer
) As IComputerTarget
Parameters
index
Type: System.Int32Zero-based index of the member to retrieve or set.
Property Value
Type: Microsoft.UpdateServices.Administration.IComputerTarget
The ComputerTarget at the specified index.
Exceptions
Exception
Condition
Attempted set to a value already in the collection at a different index. The client computer already exists in this collection.
A member of the collection cannot be set to null.
index is less than zero
-or-
index is equal or greater than Count.
Remarks
This property is an indexer in C#.
See Also
ComputerTargetCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top