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
TransactionConfig..::.Snapshot Field
TransactionConfig Class See Also Send Feedback

If true, this transaction executes with snapshot isolation.

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

# Syntax

C#
    public bool Snapshot

Visual Basic (Declaration)
    Public Snapshot As Boolean

Visual C++
    public:
    bool Snapshot

# Remarks

For databases with UseMVCC set, data values are read as they are when the transaction begins, without taking read locks. Silently ignored for operations on databases with UseMVCC not set on the underlying database (read locks are acquired).

A DeadlockException is thrown from update operations if a snapshot transaction attempts to update data which was modified after the snapshot transaction read it.

# See Also

TransactionConfig Class
BerkeleyDB Namespace