System.Win.Mtsobj.TMtsAutoObject.IsInTransaction
Delphi
function IsInTransaction: Bool;
C++
System::LongBool __fastcall IsInTransaction();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Win.Mtsobj.pas System.Win.Mtsobj.hpp |
System.Win.Mtsobj | TMtsAutoObject |
Description
Indicates whether the MTS Automation object is running in a transaction.
Call IsInTransaction to determine whether the MTS Automation object is currently running in a transaction. For example, if the MTS Automation object requires a transaction, use IsInTransaction to check that this requirement has not been turned off by an administrator using the MTS Explorer, and to raise an exception if it has.
Note: If IsInTransaction returns False, the EnableCommit and DisableCommit methods have no effect.