CogVisionDataFileCDB Open Method Cognex VisionPro 9.10
Open a vision data file using the given mode.

Namespace: Cognex.VisionPro.ImageFile
Assembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 79.0.0.0
Syntax

public virtual void Open(
	string fileName,
	CogImageFileModeConstants mode
)

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 TypeReason
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

ExceptionCondition
ArgumentExceptionmode, is not a valid value ofCogImageFileModeConstants.
ObjectDisposedExceptionThis CDB file has been disposed.
[T:Cognex.VisionPro.Exceptions.CogFileOpenException>]An error occurred while opening the specified file.
See Also