Datasnap.Win.MtsRdm.TMtsDataModule.OnActivate
Delphi
property OnActivate: TNotifyEvent read FOnActivate write FOnActivate;
C++
__property System::Classes::TNotifyEvent OnActivate = {read=FOnActivate, write=FOnActivate};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Datasnap.Win.MtsRdm.pas Datasnap.Win.MtsRdm.hpp |
Datasnap.Win.MtsRdm | TMtsDataModule |
Description
Occurs when an instance of TMtsDataModule is activated.
Write an OnActivate event handler to take specific action when COMN+ or the MTS proxy activates the MTS data module. This is the point when any database connections should be established. Database connections must not opened before the MTS data module is activated.
Note: In traditional MTS or COM+ programming, objects acquire their context object when they are activated. However, TMtsDataModule handles this task automatically.