Open a vision data file using the given mode.
Namespace: Cognex.VisionPro.ImageFileAssembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 91.0.0.0
Syntax
Parameters
- fileName
- Type: System String
The name of the file to open.
- mode
- Type: Cognex.VisionPro.ImageFile CogImageFileModeConstants
A <see cref="T:Cognex.VisionPro.ImageFile.CogImageFileModeConstants>value</see> indicating the mode in which to open the vision data file.
Implements
ICogVisionDataFileProvider Open(String, CogImageFileModeConstants)Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | <para>Fires when the value of this property changes.</para><para>The following state flag may be affected:</para><list type="bullet",<item><see cref="F:Cognex.VisionPro.ImageFile.CogVisionDataFileCDB.SfCount"/></item><item><see cref="F:Cognex.VisionPro.ImageFile.CogVisionDataFileCDB.SfFileName"/></item><item><see cref="F:Cognex.VisionPro.ImageFile.CogVisionDataFileCDB.SfOpenMode"/></item></list> |
Exceptions
| Exception | Condition |
|---|---|
| [T:Cognex.VisionPro.Exceptions.CogFileOpenException>] | An error occurred while opening the specified file. |
| ArgumentException | mode, is not a valid value ofCogImageFileModeConstants. |
| ObjectDisposedException | This CDB file has been disposed. |
See Also