Cause an abnormal termination of the transaction.

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet52 (in libdb_dotnet52.dll) Version:


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


Before Abort returns, any locks held by the transaction will have been 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