Partager via


DownstreamServerCollection.CopyTo Method (IDownstreamServer , Int32)

 

Applies To: Windows Server Update Services

Copies the downstream servers in the collection to a one-dimensional array.

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

Syntax

public void CopyTo(
    IDownstreamServer[] array,
    int index
)
public:
void CopyTo(
    array<IDownstreamServer^>^ array,
    int index
)
member CopyTo : 
        array:IDownstreamServer[] *
        index:int -> unit
Public Sub CopyTo (
    array As IDownstreamServer(),
    index As Integer
)

Parameters

  • index
    Type: System.Int32

    The zero-based index that specifies the location in the array at which to begin adding the downstream servers.

Exceptions

Exception

Condition

ArgumentException

Can occur for either of the following reasons:

  • index is greater than or equal to the length of the array.

  • The number of elements from index to the end of the array is less than the number of members in the collection.

ArgumentNullException

array cannot be null.

ArgumentOutOfRangeException

array cannot be less than zero.

See Also

CopyTo Overload
DownstreamServerCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top