System.Win.Mtsobj.TMtsAutoObject.SetComplete

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetComplete;

C++

void __fastcall SetComplete();

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Win.Mtsobj.pas
System.Win.Mtsobj.hpp
System.Win.Mtsobj TMtsAutoObject

Description

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

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.

See Also