NoWaitDbExclusiveLock Field

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

C#
Visual Basic
Visual C++

Berkeley DB .NET API Documentation
DatabaseConfig..::.NoWaitDbExclusiveLock Field
DatabaseConfig Class See Also Send Feedback

Configuration of BaseDatabase handle to obtain a write lock on the entire database.

Namespace: BerkeleyDB
Assembly: libdb_dotnet53 (in libdb_dotnet53.dll) Version: 5.3.28.0

# Syntax

C#
    public Nullable<bool> NoWaitDbExclusiveLock

Visual Basic (Declaration)
    Public NoWaitDbExclusiveLock As Nullable(Of Boolean)

Visual C++
    public:
    Nullable<bool> NoWaitDbExclusiveLock

# Remarks

If true, configure the BaseDatabase handle to obtain a write lock on the entire database. When the database is opened it will immediately throw LockNotGrantedException if it cannot obtain the exclusive lock immediately. If False, configure the BaseDatabase handle to obtain a write lock on the entire database. When the database is opened, it will block until it can obtain the exclusive lock. If null, do not configure the BaseDatabase handle to obtain a write lock on the entire database.

# See Also

DatabaseConfig Class
BerkeleyDB Namespace