SynchronizationInfoCollection.CopyTo(ISynchronizationInfo[], Int32)

Copies the synchronization information in the collection to a one-dimensional array.

public void CopyTo(
  ISynchronizationInfo[] array,
  Int32 index
Public Sub CopyTo( _
  ByVal array() As ISynchronizationInfo, _
  ByVal index As Int32 _


  • array
    Array of ISynchronizationInfo found in the collection.
  • index
    Zero-based index that specifies the location in the array at which to begin adding the synchronization information.

Return Values

This method has no return values.


Exception type Condition
System.ArgumentException Can occur because of 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.
System.ArgumentNullException array cannot be null.
System.ArgumentOutOfRangeException array cannot be less than zero.


Server Requires Windows Server 2003 or Windows 2000 Server SP4 and later.

Defined in Microsoft.UpdateServices.Administration.


Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll).

.NET Framework

Requires .NET Framework 1.1.