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 will execute with snapshot isolation.

Namespace: BerkeleyDB
Assembly: libdb_dotnet60 (in libdb_dotnet60.dll) Version: 6.0.20.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 will be 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 will be 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