CogDLRuntime FileName Property Cognex VisionPro 9.22
The name of the workspace file. May not be empty or null. Changing this value when State is Open will automatically call Close().

Namespace: Cognex.VisionPro.DLRuntime
Assembly: Cognex.VisionPro.DLRuntime (in Cognex.VisionPro.DLRuntime.dll) Version: 87.0.0.0 (87.0.0.0)
Syntax

public string FileName { get; set; }

Property Value

Type: String
Events

Event TypeReason
ICogChangedEvent Changed Fires when this value is changed. The following state flags may be affected:
  • SfFileName
  • SfState
Exceptions

ExceptionCondition
ArgumentNullException If the input argument is null.
ArgumentException If the input argument is an empty string.
Remarks

Note that you may embed environment variables such as "%VPRO_ROOT%" in your file name. These must be surrouned by percent marks ("%"). A call to Open will attempt to expand environment variables in the FileName.
See Also