DownstreamServerCollection.CopyTo(IDownstreamServer[], Int32)
Copies the downstream servers in the collection to a one-dimensional array.
public void CopyTo(
IDownstreamServer[] array,
Int32 index
);
Public Sub CopyTo( _
ByVal array() As IDownstreamServer, _
ByVal index As Int32 _
)
Parameters
- array
Array of IDownstreamServer found in the collection. - index
Zero-based index that specifies the location in the array at which to begin adding the downstream servers.
Return Values
This method has no return values.
Exceptions
| Exception type | Condition |
|---|---|
| System.ArgumentException | Can occur because of either of the following reasons:
|
| System.ArgumentNullException | array cannot be null. |
| System.ArgumentOutOfRangeException | array cannot be less than zero. |
Requirements
| Server | Requires Windows Server 2003 or Windows 2000 Server SP4 and later. |
| Namespace | Defined in Microsoft.UpdateServices.Administration. |
| Assembly | Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll). |
| .NET Framework | Requires .NET Framework 1.1. |