ICogDatabase MethodsCognex VisionPro 9.21 SR1

The ICogDatabase type exposes the following members.

Methods

  NameDescription
Public methodAdd
Add the supplied record to the database with a key defined by the RecordKey field. This key must be unique.
Public methodClear
Remove any and all database items. Does not affect the Metadata property.
Public methodConnect
Connect to the database specified by the Name property. Successfully connecting grants exclusive read and write access to the database. This method is idempotent - you may safely call it repeatedly.
Public methodDisconnect
Disconnect from the database specified by the Name property. Successfully disconnecting releases exclusive read and write access to the database. This method is idempotent - you may safely call it repeatedly.
Public methodFetch(Int32)
Create an ICogRecord that duplicates the item specified by the supplied index. Note that a new ICogRecord is created every time this method is called.
Public methodFetch(String)
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.
Public methodGetCount
Get the number of items in the currently connected database.
Public methodGetEnumerator 
Returns an enumerator that iterates through the collection.
(Inherited from IEnumerable ICogRecord .)
Public methodGetEnumerator 
Returns an enumerator that iterates through a collection.
(Inherited from IEnumerable.)
Public methodGetKeys
Generate an array of strings corresponding to the keys in the database.
Public methodRemove(Int32)
Remove the specified item from the database.
Public methodRemove(String)
Remove the specified item from the database.
Public methodReplace
Find the database item whose key matches the RecordKey of the supplied ICogRecord. Replace that database item with (the contents of) the supplied ICogRecord.
Top
See Also