CogVisionDataContainer IndexOf Method (KeyValuePair String, ICogVisionData )Cognex VisionPro 9.8 SR1
Searches the container for the specified key value pair and returns the zero-based index of the first occurrence.

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

public virtual int IndexOf(
	KeyValuePair<string, ICogVisionData> pair
)

Parameters

pair
Type: System.Collections.Generic KeyValuePair String, ICogVisionData 
The key value pair to locate.

Return Value

Type: Int32
The zero based index of the first occurrence of pair within the container, if found; otherwise, -1

Implements

IList T  IndexOf(T)
See Also