Share via


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)

Syntax

'Declaration
Public Overrides Sub BeginTransaction ( _
    isolationLevel As IsolationLevel _
)
'Usage
Dim instance As SqlMetadataStore
Dim isolationLevel As IsolationLevel

instance.BeginTransaction(isolationLevel)
public override void BeginTransaction(
    IsolationLevel isolationLevel
)
public:
virtual void BeginTransaction(
    IsolationLevel isolationLevel
) override
abstract BeginTransaction : 
        isolationLevel:IsolationLevel -> unit 
override BeginTransaction : 
        isolationLevel:IsolationLevel -> unit 
public override function BeginTransaction(
    isolationLevel : IsolationLevel
)

Parameters

Exceptions

Exception Condition
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.

Remarks

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

See Also

Reference

SqlMetadataStore Class

BeginTransaction Overload

Microsoft.Synchronization.MetadataStorage Namespace