ICogDatabase Remove Method (Int32)Cognex VisionPro 9.10
Remove the specified item from the database.

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

void Remove(
	int index
)

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.
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.
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