Construct a new instance of the CogDatabaseDirectory class.
Set the Name property to the supplied value, and then
attempt to connect to that database.
Namespace: Cognex.VisionPro.DatabaseAssembly: Cognex.VisionPro.Database (in Cognex.VisionPro.Database.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax
Parameters
- name
- Type: System String
The desired database name. This must be the path of the intended database directory, e.g. "C:\\MyDatabase".
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown if unable to connect. |
See Also