Remove the specified item from the database.
Namespace: Cognex.VisionPro.DatabaseAssembly: Cognex.VisionPro.Database (in Cognex.VisionPro.Database.dll) Version: 87.0.0.0 (87.0.0.0)
Syntax
Parameters
- key
- Type: System String
This key specifies the item to remove from the database.
Events
| Event Type | Reason |
|---|---|
| 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
| Exception | Condition |
|---|---|
| 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