Parameters
- array
- The one-dimensional System.Array that is the destination of the elements copied from System.Collections.ICollection. The System.Array must have zero-based indexing.
- index
- The zero-based index in array at which copying begins.
Exception | Description |
---|---|
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- index is equal to or greater than the length of array.-or- The number of elements in the source System.Collections.ICollection is greater than the available space from index to the end of the destination array. |
System.InvalidCastException | The type of the source System.Collections.ICollection cannot be cast automatically to the type of the destination array. |