ICogDatabase Fetch Method (String)Cognex VisionPro
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.Database
Assembly: Cognex.VisionPro.Database (in Cognex.VisionPro.Database.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax

ICogRecord Fetch(
	string key
)

Parameters

key
Type: System String
This key specifies the item to fetch from the database.

Return Value

Type: ICogRecord
A newly created instance of the requested database item.
Exceptions

ExceptionCondition
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