Partager via


DownstreamServerCollection.Insert Method (Int32, IDownstreamServer)

 

Applies To: Windows Server Update Services

Inserts a downstream server into the collection.

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

Syntax

public void Insert(
    int index,
    IDownstreamServer value
)
public:
void Insert(
    int index,
    IDownstreamServer^ value
)
member Insert : 
        index:int *
        value:IDownstreamServer -> unit
Public Sub Insert (
    index As Integer,
    value As IDownstreamServer
)

Parameters

  • index
    Type: System.Int32

    The zero-based index at which to insert the downstream server into the collection.

Exceptions

Exception

Condition

ArgumentException

The downstream server already exists in this collection.

ArgumentNullException

value cannot be null.

ArgumentOutOfRangeException

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

See Also

Insert Overload
DownstreamServerCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top