ICogDatabase GetKeys Method Cognex VisionPro 9.21 SR1
Generate an array of strings corresponding to the keys in the database.

Namespace: Cognex.VisionPro.Database
Assembly: Cognex.VisionPro.Database (in Cognex.VisionPro.Database.dll) Version: 85.1.0.0 (85.1.0.0)
Syntax

string[] GetKeys()

Return Value

Type:  String 
An array of strings containing the keys in the database. This can be an empty array if there are no items in the database.
Exceptions

ExceptionCondition
ObjectDisposedException Thrown if this object has already been disposed.
InvalidOperationException Thrown if not currently connected.
InvalidOperationException Thrown if unable to get the keys in the database.
See Also