Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.
[Visual Basic]
Overridable Public Sub CopyTo( _
ByVal array As Array, _
ByVal index As Integer _
) Implements _
ICollection.CopyTo
Exception Type | Condition |
---|---|
System.ArgumentNullException |
The array is a null reference (Nothing
in Visual Basic).
|
System.ArgumentOutOfRangeException | The index is less than zero. |
System.ArgumentException | The array is multidimensional. -or-The index is equal to or greater than the length of array. -or-The number of elements in the collection is greater than the available space from index to the end of the destination array. |
Collection2Base Class | Collection2Base Members | Foley.Utilities.Collections Namespace