Create an ICogRecord that duplicates the item specified
by the supplied key. Note that a new ICogRecord is
created every time this method is called.
Namespace: Cognex.VisionPro.DatabaseAssembly: Cognex.VisionPro.Database (in Cognex.VisionPro.Database.dll) Version: 91.0.0.0 (91.0.0.0)
Syntax
Parameters
- key
- Type: System String
This key specifies the item to fetch from the database.
Return Value
Type: ICogRecordA newly created instance of the requested database item.
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | Thrown if this object has already been disposed. |
| InvalidOperationException | Thrown if not currently connected. |
| ArgumentNullException | Thrown if the input argument, key, is null. |
| ArgumentException | Thrown if there is no item in the database with this key. |
| InvalidOperationException | Thrown if unable to fetch the record. |
See Also