Partager via


DownstreamServerCollection.Add Method (IDownstreamServer)

 

Applies To: Windows Server Update Services

Adds a downstream server to the end of the collection.

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

Syntax

public int Add(
    IDownstreamServer value
)
public:
int Add(
    IDownstreamServer^ value
)
member Add : 
        value:IDownstreamServer -> int
Public Function Add (
    value As IDownstreamServer
) As Integer

Parameters

Return Value

Type: System.Int32

The zero-based index at which the downstream server was added to the collection.

Exceptions

Exception

Condition

ArgumentException

The downstream server already exists in the collection.

ArgumentNullException

value cannot be null.

See Also

Add Overload
DownstreamServerCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top