CogVisionDataFileCDB CopyTo Method Cognex VisionPro 9.7
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

Namespace: Cognex.VisionPro.ImageFile
Assembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 73.0.0.0
Syntax

public virtual void CopyTo(
	ICogVisionData[] array,
	int index
)

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

ExceptionCondition
ArgumentOutOfRangeExceptionindex is out of range.
ArgumentNullExceptionarray is NULL.
ObjectDisposedExceptionThis CDB file has been disposed.
ArgumentExceptionThe number of records in the CDB file is greater than the available space from <paramref name="index", to the end of <paramref name="array"/>.
[T:Cognex.VisionPro.Exceptions.CogNoFileOpenException>]The file is not open.
See Also