RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMtsAutoObject.SetComplete Method

Indicates that the MTS Automation object has successfully completed its current task.

Pascal
procedure SetComplete;
C++
__fastcall SetComplete();

Call SetComplete to indicate that the MTS Automation object no longer needs to maintain state information. After calling SetComplete, the MTS Automation object is deactivated when the current method call exits. 

If the MTS Automation object is part of a transaction, SetComplete indicates that this part of the transaction can commit. If MTS started the transaction automatically when the client called the MTS Automation object's methods, MTS tries to commit the transaction when the current method exits.

Note: This transaction may still fail if the current transaction included another MTS object that called SetAbort or DisableCommit.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!