CogDatabaseDirectory Connect Method Cognex VisionPro 9.21 SR1
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.

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

public void Connect()

Implements

ICogDatabase Connect 
Events

Event TypeReason
VisionProChangedEvent Fires when this method changes Connected.
Exceptions

ExceptionCondition
ObjectDisposedException Thrown if this object has already been disposed.
InvalidOperationException Thrown if unable to connect.
See Also