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
isolationLevel
The isolation level for the transaction. This must be one of the following values from the System.Data.IsolationLevel enumeration: ReadCommitted,RepeatableRead, or
Exceptions
Exception type | Condition |
---|---|
This object has been disposed or was not initialized correctly. |
|
isolationLevel is not one of the following values from the System.Data.IsolationLevel enumeration: ReadCommitted, RepeatableRead, or Serializable. |
|
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