Copies the elements of the System.Collections.Generic.ICollection`1 to an System.Array, starting at a particular System.Array index.
Syntax
Parameters
- array
- The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.ICollection`1. The System.Array must have zero-based indexing.
- arrayIndex
- The zero-based index in at which copying begins.
Exceptions
Exception | Description |
System.ArgumentNullException | is null. |
System.ArgumentOutOfRangeException | is less than 0. |
System.ArgumentException | is multidimensional.-or-The number of elements in the source System.Collections.Generic.ICollection`1 is greater than the available space from to the end of the destination .-or-Type cannot be cast automatically to the type of the destination . |
See Also