CogReadOnlyCollectionNonSerializable T  CopyTo Method Cognex VisionPro 9.24
Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array.

Namespace: Cognex.VisionPro.Implementation
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 91.0.0.0 (91.0.0.0)
Syntax

public virtual void CopyTo(
	T[] array,
	int arrayIndex
)

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

ExceptionCondition
ArgumentNullExceptionarray is null.
ArgumentOutOfRangeExceptionarrayIndex is less than 0.
ArgumentExceptionThe number of elements in the Collection is greater than the available space from arrayIndex to the end of the destination array.
See Also