CogAutoSelectResults CopyTo Method Cognex VisionPro 9.5
Copies the elements of this CogAutoSelectResults object to the supplied array, starting at the specified array index. This is a deep copy.

Namespace: Cognex.VisionPro.AutoSelect
Assembly: Cognex.VisionPro.AutoSelect (in Cognex.VisionPro.AutoSelect.dll) Version: 69.0.0.0
Syntax

public virtual void CopyTo(
	Array array,
	int index
)

Implements

ICollection CopyTo(Array, Int32)
Exceptions

ExceptionCondition
ArgumentNullException If the array argument is null.
ArgumentOutOfRangeException If the index argument is less than zero.
ArgumentException If the supplied array is not one dimensional.
ArgumentException If the supplied array's lower bound is not zero.
ArgumentException If the supplied array has fewer elements than there are results.
ArgumentOutOfRangeException If the index argument is such that the results will not fit in the specified portion of the supplied array.
ArgumentException If the type of the elements of the supplied array is not CogAutoSelectResult.
See Also