ArrayListCopyTo Method (Array, Int32) |
Copies the entire
ArrayList to a compatible one-dimensional
Array, starting at the specified index of the target array.
Namespace: System.CollectionsAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax Exceptions Exception | Condition |
---|
ArgumentNullException | array is null. |
ArgumentOutOfRangeException | arrayIndex is less than zero. |
ArgumentException | array is multidimensional.-or- The number of elements in the source ArrayList is greater than the available space from arrayIndex to the end of the destination array. |
InvalidCastException | The type of the source ArrayList cannot be cast automatically to the type of the destination array. |
See Also