CogVisionDataFileCDB Close Method Cognex VisionPro 9.20
Closes a vision data file

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

public virtual void Close()

Implements

ICogVisionDataFileProvider Close 
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
ObjectDisposedExceptionThis CDB file has been disposed.
Remarks

This will set the FileName property to "". If the file is not currently open, calling Close() has no effect.
See Also