Share via


ComputerTargetGroupCollection.Item Property (Int32)

 

Applies To: Windows Server Update Services

Gets or sets the member of the collection at the specified index.

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

Syntax

public IComputerTargetGroup this[
    int index
] { get; set; }
public:
property IComputerTargetGroup^ default[
    int index
] {
    IComputerTargetGroup^ get(int index);
    void set(int index, IComputerTargetGroup^ value);
}
member Item : 
        index:int -> IComputerTargetGroup with get, set
Public Property Item (
    index As Integer
) As IComputerTargetGroup

Parameters

  • index
    Type: System.Int32

    The zero-based index of the member to get or set.

Property Value

Type: Microsoft.UpdateServices.Administration.IComputerTargetGroup

The IComputerTargetGroup at the specified index.

Exceptions

Exception

Condition

ArgumentException

The target group already exists in this collection.

ArgumentNullException

A member of the collection cannot be set to null.

ArgumentOutOfRangeException

index cannot be either less than zero or greater than or equal to the count of the collection.

Remarks

This property is an indexer in C#.

See Also

ComputerTargetGroupCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top