Delete Method

BerkeleyDB

Delete the key/data pair to which the cursor refers.

When called on a SecondaryCursor, delete the key/data pair from the primary database and all secondary indices.

The cursor position is unchanged after a delete, and subsequent calls to cursor functions expecting the cursor to refer to an existing key will fail.

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet48 (in libdb_dotnet48.dll) Version: 4.8.24.0

Syntax

C#
public void Delete()
Visual Basic (Declaration)
Public Sub Delete
Visual C++
public:
void Delete()

Exceptions

ExceptionCondition
BerkeleyDB..::.KeyEmptyException Thrown if the element has already been deleted.

See Also