<xml></xml>

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

Berkeley DB .NET API Documentation
Transaction..::.SetTxnTimeout Method
Transaction Class See Also

Set the timeout value for transactions for this transaction.

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

# Syntax

C#

    public void SetTxnTimeout(
    	uint timeout
    )

Visual Basic (Declaration)

    Public Sub SetTxnTimeout ( _
    	timeout As UInteger _
    )

Visual C++

    public:
    void SetTxnTimeout(
    	unsigned int timeout
    )

#### Parameters

timeout
  Type: System..::.UInt32
  An unsigned 32-bit number of microseconds, limiting the maximum timeout to roughly 71 minutes. A value of 0 disables timeouts for the transaction.

# Remarks

Timeouts are checked whenever a thread of control blocks on a lock or when deadlock detection is performed. This timeout is for the life of the transaction. As timeouts are only checked when the lock request first blocks or when deadlock detection is performed, the accuracy of the timeout depends on how often deadlock detection is performed.

Timeout values may be specified for the database environment as a whole. See TxnTimeout for more information.

# See Also

Transaction Class
BerkeleyDB Namespace