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.Int32

    Zero-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

ArgumentException

Attempted set to a value already in the collection at a different index. The client computer already exists in this collection.

ArgumentNullException

A member of the collection cannot be set to null.

ArgumentOutOfRangeException

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