Share via


DownstreamServerCollection.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 IDownstreamServer this[
    int index
] { get; set; }
public:
property IDownstreamServer^ default[
    int index
] {
    IDownstreamServer^ get(int index);
    void set(int index, IDownstreamServer^ value);
}
member Item : 
        index:int -> IDownstreamServer with get, set
Public Property Item (
    index As Integer
) As IDownstreamServer

Parameters

  • index
    Type: System.Int32

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

Property Value

Type: Microsoft.UpdateServices.Administration.IDownstreamServer

The IDownstreamServer at the specified index.

Exceptions

Exception

Condition

ArgumentException

The downstream server already exists in this collection.

ArgumentNullException

A member of the collection cannot be set to null.

ArgumentOutOfRangeException

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

Remarks

This property is an indexer for the DownstreamServerCollection class in C#.

See Also

DownstreamServerCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top