Delete the key/data pair to which the cursor refers from the primary
database and all secondary indices.
Namespace:
BerkeleyDBAssembly: libdb_dotnet50 (in libdb_dotnet50.dll) Version: 5.0.21.0
Syntax
| C# |
|---|
public void Delete() |
| Visual Basic (Declaration) |
|---|
Public Sub Delete |
| Visual C++ |
|---|
public: void Delete() |
Remarks
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.
Exceptions
| Exception | Condition |
|---|---|
| BerkeleyDB..::.KeyEmptyException | The element has already been deleted. |