RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMtsAutoObject.IsInTransaction Method

Indicates whether the MTS Automation object is running in a transaction.

Pascal
function IsInTransaction: Bool;
C++
__fastcall Bool IsInTransaction();

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.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!