Remove the specified item from the database.
Namespace: Cognex.VisionPro.DatabaseAssembly: Cognex.VisionPro.Database (in Cognex.VisionPro.Database.dll) Version: 83.0.0.0 (83.0.0.0)
Syntax
Parameters
- index
- Type: System Int32
This index specifies the item to remove from the database. Indexing is with respect to the list of keys returned by the GetKeys method.
Implements
ICogDatabase Remove(Int32)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. |
| ArgumentOutOfRangeException | Thrown if the input argument, index, is less than zero or greater than or equal to the value returned by the GetCount method. |
| InvalidOperationException | Thrown if unable to remove record. |
See Also