Megosztás a következőn keresztül:


Server.IsInTransaction Property

Definition

Gets the value indicating whether there is an active transaction started on Server.

public bool IsInTransaction { get; }
member this.IsInTransaction : bool
Public ReadOnly Property IsInTransaction As Boolean

Property Value

Remarks

Server object keeps track of transaction that are started, committed or reverted by calling appropriate methods (BeginTransaction, CommitTransaction, RollbackTransaction). IsInTransaction value will reflect the state of the Server. If you instantiate a Server object and connect it to existing session with transaction already being in progress, IsInTransaction will return false as it is not aware of transactions started by another connections.

Applies to