Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Namespace: Cognex.VisionPro.ImageFileAssembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 87.1.0.0
Syntax
Parameters
- array
- Type: Cognex.VisionPro ICogVisionData
The one-dimensional Array that is the destination of the elements copied from the CDB file. The Array must have zero-based indexing.
- index
- Type: System Int32
The zero-based index in array at which copying begins.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is out of range. |
| [T:Cognex.VisionPro.Exceptions.CogNoFileOpenException>] | The file is not open. |
| ObjectDisposedException | This CDB file has been disposed. |
| ArgumentException | The number of records in the CDB file is greater than the available space from <paramref name="index", to the end of <paramref name="array"/>. |
| ArgumentNullException | array is NULL. |
See Also