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 an ICogRecord 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.DatabaseAssembly: Cognex.VisionPro.Database (in Cognex.VisionPro.Database.dll) Version: 85.1.0.0 (85.1.0.0)
Syntax
Return Value
Type: IEnumerator ICogRecordAn enumerator whose Current property is of type ICogRecord.
Implements
IEnumerable T GetEnumeratorExceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | Thrown if this object has already been disposed. |
| InvalidOperationException | Thrown if not currently connected. |
See Also