ActiveDirectoryReplicationMetadata.CopyTo Method (AttributeMetadata[], Int32)

Copies all AttributeMetadata objects in this collection to the specified array, starting at the specified index of the target array.

Namespace: System.DirectoryServices.ActiveDirectory
Assembly: System.DirectoryServices (in system.directoryservices.dll)

public void CopyTo (
	AttributeMetadata[] array,
	int index
public void CopyTo (
	AttributeMetadata[] array, 
	int index
public function CopyTo (
	array : AttributeMetadata[], 
	index : int
Not applicable.



The array of AttributeMetadata objects that receives the elements of this collection.


The zero-based index in array where this method starts copying this collection.

Exception typeCondition


A call to the underlying directory service resulted in an error.


The destination array is not large enough to hold the required number of elements.


array is a null reference (Nothing in Visual Basic).


index is out of range of the destination array.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions