Copies the elements of this instance into an Array, starting at a particular index into the array.
[Visual Basic] Overridable Public Sub CopyTo( _ ByVal array As Array, _ ByVal index As Integer _ ) [C#] public virtual void CopyTo( Array array, int index ); [C++] public: virtual void CopyTo( Array* array, int index ); [JScript] public function CopyTo( array : Array, index : int );
Exception Type | Condition |
---|---|
ArgumentException | The index plus the size of this collection is greater than the length ot the Array. |
ArgumentNullException | The array is a null reference (in Visual Basic Nothing). |
IndexOutOfRangeException | The index is out of the array's bounds. |
DirectoryEntryCollection Class | DirectoryEntryCollection Members | System.DirectoryServices Namespace