CogVisionDataFileCDB Clear Method Cognex VisionPro 9.22
Removes all records from this CDB file.

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

public virtual void Clear()
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></list>
Exceptions

ExceptionCondition
ObjectDisposedExceptionThis CDB file has been disposed.
[T:Cognex.VisionPro.Exceptions.CogNoFileOpenException>]The file is not open.
[T:Cognex.VisionPro.Exceptions.CogBadFileModeException>]The mode is Read, so the CDB file cannot be written to.
See Also