Data.Win.ADODB.TADOConnection.OnBeginTransComplete
Delphi
property OnBeginTransComplete: TBeginTransCompleteEvent read FOnBeginTransComplete write FOnBeginTransComplete;
C++
__property TBeginTransCompleteEvent OnBeginTransComplete = {read=FOnBeginTransComplete, write=FOnBeginTransComplete};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | TADOConnection |
Description
Occurs after beginning a transaction.
Write an OnBeginTransComplete event handler to take specific action after an attempt to begin a transaction has successfully completed. The OnBeginTransComplete event fires after the corresponding operation (initiation of a transaction) has executed at the ADO Connection object. Calling the BeginTrans method will lead to this event occurring.
TransactionLevel is the new transaction level from the call to the BeginTrans method.
Error is an ADO Error object. See the Microsoft Data Access SDK for more information on using ADO Error objects. The Error parameter is only set if an error occurred during execution of the operation that triggered the event. In this case, the EventStatus parameter will contain the indicating value esErrorsOccured.
The EventStatus value (ADO EventStatusEnum) indicates the success or failure of the execution of the operation that triggered the event.