This documentation is archived and is not being maintained.

PropertyCollection.CopyTo Method

Copies the properties from this collection to an array, starting at a particular index of the array.

[Visual Basic]
Public Sub CopyTo( _
   ByVal array() As PropertyValueCollection, _
   ByVal index As Integer _
)
[C#]
public void CopyTo(
 PropertyValueCollection[] array,
 int index
);
[C++]
public: void CopyTo(
 PropertyValueCollection* array[],
 int index
);
[JScript]
public function CopyTo(
   array : PropertyValueCollection[],
 index : int
);

Parameters

array
An array of type PropertyValueCollection that contains this collection's properties.
index
The zero-based array index at which to begin copying the properties.

Exceptions

Exception Type Condition
COMException An error occurred during the call to the underlying interface.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

PropertyCollection Class | PropertyCollection Members | System.DirectoryServices Namespace | COMException

Show: