ICogDatabase Connect Method Cognex VisionPro 9.23
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: 91.0.0.0 (91.0.0.0)
Syntax

void 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