Server.IsInTransaction Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.