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.DatabaseAssembly: Cognex.VisionPro.Database (in Cognex.VisionPro.Database.dll) Version: 73.0.0.0 (73.0.0.0)
Syntax
Events
| Event Type | Reason |
|---|---|
| VisionProChangedEvent | Fires when this method changes Connected. |
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | Thrown if this object has already been disposed. |
| InvalidOperationException | Thrown if unable to connect. |
See Also