CogVisionDataFileCDB CopyTo Method Cognex VisionPro 9.22 SR1
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: 87.1.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.
[T:Cognex.VisionPro.Exceptions.CogNoFileOpenException>]The file is not open.
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"/>.
ArgumentNullExceptionarray is NULL.
See Also