ArrayCopyTo Method (Array, Int32) |
Copies all the elements of the current one-dimensional
Array to the specified one-dimensional
Array starting at the specified destination
Array index. The index is specified as a 32-bit integer.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax Exceptions Exception | Condition |
---|
ArgumentNullException | array is null. |
ArgumentOutOfRangeException | index is less than the lower bound of array. |
ArgumentException | array is multidimensional.-or-The number of elements in the source Array is greater than the available space from index to the end of the destination array. |
ArrayTypeMismatchException | The type of the source Array cannot be cast automatically to the type of the destination array. |
RankException | The source Array is multidimensional. |
InvalidCastException | At least one element in the source Array cannot be cast to the type of destination array. |
See Also