<xml></xml>

Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

Berkeley DB .NET API Documentation
Transaction..::.Abort Method
Transaction Class See Also Send Feedback

Cause an abnormal termination of the transaction.

Namespace: BerkeleyDB
Assembly: libdb_dotnet53 (in libdb_dotnet53.dll) Version: 5.3.28.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 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

Transaction Class
BerkeleyDB Namespace