CogDatabaseDirectory Remove Method (String)Cognex VisionPro 9.20
Remove the specified item from the database.

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

public void Remove(
	string key
)

Parameters

key
Type: System String
This key specifies the item to remove from the database.

Implements

ICogDatabase Remove(String)
Events

Event TypeReason
DatabaseRemovingEvent Fires at the start of a call to this method.
DatabaseRemovedEvent Fires at the end of a call to this method.
VisionProChangedEvent Fires when this method changes the values returned by GetCount and GetKeys.
Exceptions

ExceptionCondition
ObjectDisposedException Thrown if this object has already been disposed.
InvalidOperationException Thrown if not currently connected.
ArgumentNullException Thrown if the input argument, key, is null.
ArgumentException Thrown if there is no item in the database with this key.
InvalidOperationException Thrown if unable to remove record.
See Also