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

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

public int GetCount()

Return Value

Type: Int32
The number of items in the currenlty connected database.

Implements

ICogDatabase GetCount 
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