Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array.
Namespace: Cognex.VisionPro.ImplementationAssembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 69.0.0.0 (69.0.0.0)
Syntax
Parameters
- array
- Type: T
The one-dimensional Array that is the destination of the elements copied from Collection. The Array must have zero-based indexing.
- arrayIndex
- Type: System Int32
The zero-based index in array at which copying begins.
Implements
ICollection T CopyTo( T , Int32)Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | array is null. |
| ArgumentOutOfRangeException | arrayIndex is less than 0. |
| ArgumentException | The number of elements in the Collection is greater than the available space from arrayIndex to the end of the destination array. |
See Also