Copies the elements of this instance into an Array, starting at a particular index into the given 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 of the array. |
ArgumentNullException | The array is null. |
ArgumentOutOfRangeException | The index is out of the array's bounds. |
DirectoryEntryPropertyValueCollection Class | DirectoryEntryPropertyValueCollection Members | System.DirectoryServices Namespace