This documentation is archived and is not being maintained.

PropertyCollection.CopyTo Method

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

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

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

Parameters

array

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

index

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

Exception typeCondition

COMException

An error occurred during the call to the underlying interface.

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, 1.1, 1.0
Show: