ICogDatabase GetCount Method Cognex VisionPro
Get the number of items in the currently connected database.

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

int GetCount()

Return Value

Type: Int32
The number of items in the currenlty connected 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 count of items.
See Also