CogVerificationDatabase GetEnumerator Method Cognex VisionPro 9.10
Create a strongly typed enumerator to facilitate iterating through the items in this database. Note that enumerators are fragile - externally adding or removing items from this database will invalidate the enumerator. Also note that modifying a CogVerificationData returned by (the Current property of) this enumerator will have absolutely no affect on the database since it is a freshly created copy of the database item, just as with the Fetch method.

Namespace: Cognex.VisionPro.Inspection
Assembly: Cognex.VisionPro.Inspection (in Cognex.VisionPro.Inspection.dll) Version: 79.0.0.0 (79.0.0.0)
Syntax

public IEnumerator<CogVerificationData> GetEnumerator()

Return Value

Type: IEnumerator CogVerificationData 
An enumerator whose Current property is of type CogVerificationData.

Implements

IEnumerable T  GetEnumerator 
Exceptions

ExceptionCondition
InvalidOperationException Thrown if not currently connected.
See Also