CogDatabaseDirectory Replace Method Cognex VisionPro 9.5
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.Database
Assembly: Cognex.VisionPro.Database (in Cognex.VisionPro.Database.dll) Version: 69.0.0.0 (69.0.0.0)
Syntax

public void Replace(
	ICogRecord record
)

Implements

ICogDatabase Replace(ICogRecord)
Events

Event TypeReason
DatabaseReplacingEvent Fires at the start of a call to this method.
DatabaseReplacedEvent Fires at the end of a call to this method.
Exceptions

ExceptionCondition
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