Cause an abnormal termination of the transaction.

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet181 (in libdb_dotnet181.dll) Version: 18.1.32.0

Syntax

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

Remarks

Before Abort returns, any locks held by the transaction are released.

In the case of nested transactions, aborting a parent transaction causes all children (unresolved or not) of the parent transaction to be aborted.

All cursors opened within the transaction must be closed before the transaction is aborted. This method closes all open cursor handles, if any. And if a close operation fails, the rest of the cursors are closed, and the database environment is set to the panic state.

See Also