Find the database item whose key matches the RecordKey of the
supplied ICogRecord. Replace that database item with
(the contents of) the supplied ICogRecord.
Namespace: Cognex.VisionPro.DatabaseAssembly: Cognex.VisionPro.Database (in Cognex.VisionPro.Database.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax
Parameters
- record
- Type: Cognex.VisionPro ICogRecord
The replacement ICogRecord.
Events
| Event Type | Reason |
|---|---|
| DatabaseReplacingEvent | Fires at the start of a call to this method. |
| DatabaseReplacedEvent | Fires at the end of a call to this method. |
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | Thrown if this object has already been disposed. |
| InvalidOperationException | Thrown if not currently connected. |
| ArgumentNullException | Thrown if the input argument, record, is null. |
| ArgumentException | Thrown if the specified key is not found. |
| InvalidOperationException | Thrown if unable to add record. |
See Also