ICogDatabase Clear Method Cognex VisionPro 9.22 SR1
Remove any and all database items. Does not affect the Metadata property.

Namespace: Cognex.VisionPro.Database
Assembly: Cognex.VisionPro.Database (in Cognex.VisionPro.Database.dll) Version: 87.1.0.0 (87.1.0.0)
Syntax

void Clear()
Events

Event TypeReason
DatabaseClearingEvent Fires at the start of a call to this method.
DatabaseClearedEvent Fires at the end of a call to this method.
VisionProChangedEvent Fires when this method changes the value returned by GetCount.
Exceptions

ExceptionCondition
ObjectDisposedException Thrown if this object has already been disposed.
InvalidOperationException Thrown if not currently connected.
InvalidOperationException Thrown if unable to remove a record.
See Also