SqlMetadataStore::BeginTransaction Method (IsolationLevel)

Starts an explicit transaction on the metadata store that has the specified isolation level.

Namespace:  Microsoft.Synchronization.MetadataStorage
Assembly:  Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)

public:
virtual void BeginTransaction(
	IsolationLevel isolationLevel
) override

Parameters

isolationLevel
Type: System.Data::IsolationLevel
The isolation level for the transaction. This must be one of the following values from the System.Data::IsolationLevel enumeration: ReadCommitted,
RepeatableRead, or
Serializable.

ExceptionCondition
ObjectDisposedException

This object has been disposed or was not initialized correctly.

ArgumentOutOfRangeException

isolationLevel is not one of the following values from the System.Data::IsolationLevel enumeration: ReadCommitted(),

RepeatableRead(), or

Serializable().

InvalidOperationException

A metadata store has not been opened or created, or a transaction was already started.

Changes that are saved after this method is called are not committed to the store until CommitTransaction is called.

Show: