Not
Åtkomst till denna sida kräver auktorisation. Du kan prova att logga in eller byta katalog.
Åtkomst till denna sida kräver auktorisation. Du kan prova att byta katalog.
Indicates whether an active transaction exists on the metadata store.
Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)
Syntax
'Declaration
Public Overrides Function IsTransactionActive ( _
<OutAttribute> ByRef isolationLevel As IsolationLevel _
) As Boolean
'Usage
Dim instance As SqlMetadataStore
Dim isolationLevel As IsolationLevel
Dim returnValue As Boolean
returnValue = instance.IsTransactionActive(isolationLevel)
public override bool IsTransactionActive(
out IsolationLevel isolationLevel
)
public:
virtual bool IsTransactionActive(
[OutAttribute] IsolationLevel% isolationLevel
) override
abstract IsTransactionActive :
isolationLevel:IsolationLevel byref -> bool
override IsTransactionActive :
isolationLevel:IsolationLevel byref -> bool
public override function IsTransactionActive(
isolationLevel : IsolationLevel
) : boolean
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.Boolean
true if an active transaction exists on the metadata store; otherwise, false.
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | This object has been disposed or was not initialized correctly. |
Remarks
An active transaction can be started by calling BeginTransaction.