SqlMetadataStore::IsTransactionActive Method
Indicates whether an active transaction exists on the metadata store.
Assembly: Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)
public: virtual bool IsTransactionActive( [OutAttribute] IsolationLevel% isolationLevel ) override
Parameters
- isolationLevel
- Type: System.Data::IsolationLevel%
Returns the isolation level of the currently active transaction, or IsolationLevel::Unspecified if no active transaction exists.
Return Value
Type: System::Booleantrue if an active transaction exists on the metadata store; otherwise, false.
| Exception | Condition |
|---|---|
| ObjectDisposedException | This object has been disposed or was not initialized correctly. |
An active transaction can be started by calling BeginTransaction.
Show: