Delen 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
public void BeginTransaction (
    IsolationLevel isolationLevel
)
public override function BeginTransaction (
    isolationLevel : IsolationLevel
)

Parameters

Exceptions

Exception type 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
SqlMetadataStore Members
Microsoft.Synchronization.MetadataStorage Namespace