CogDatabaseDirectory Name Property Cognex VisionPro 9.22 SR1
Gets or sets the name of this database. This will be the path of the desired database directory, e.g. "C:\\MyDatabase". This must be set to the desired value before calling Connect. Attempting to set this when Connected is true will cause an exception to be thrown.

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

public string Name { get; set; }

Property Value

Type: String

Implements

ICogDatabase Name
Events

Event TypeReason
VisionProChangedEvent Fires when this property changes.
Exceptions

ExceptionCondition
ObjectDisposedException Thrown if this object has already been disposed.
InvalidOperationException Thrown if you attempt to set Name while Connected is true.
See Also