CogVisionDataContainer CopyTo Method Cognex VisionPro 9.5
Copies the entire collection to a one-dimensional array of key value pairs, starting at the specified index of the target array.

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

public virtual void CopyTo(
	KeyValuePair<string, ICogVisionData>[] arr,
	int index
)

Parameters

arr
Type:  System.Collections.Generic KeyValuePair String, ICogVisionData  
The one-dimensional array that is the destination of the elements copied from this container. The array must have zero-based indexing.
index
Type: System Int32
The zero-based index in the target array at which copying begins.

Implements

ICollection T  CopyTo( T , Int32)
Exceptions

ExceptionCondition
[System.ArgumentNullException]arr is null.
[System.ArgumentOutOfRangeException]index is less than 0.
[System.ArgumentException]The number of elements in this container is greater than the available space from index to the end of the destination array.
See Also