Datasnap.DSServer.TDSServerClass.OnDestroyInstance
Delphi
property OnDestroyInstance: TDSDestroyInstanceEvent read FDestroyInstanceEvent write FDestroyInstanceEvent;
C++
__property TDSDestroyInstanceEvent OnDestroyInstance = {read=FDestroyInstanceEvent, write=FDestroyInstanceEvent};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Datasnap.DSServer.pas Datasnap.DSServer.hpp |
Datasnap.DSServer | TDSServerClass |
Description
Happens upon destruction of server class instances.
Use this event to override the default destruction of server class instances. OnDestroyInstance allows for custom initialization and custom object pooling if the LifeCycle property is set to Datasnap.DSNames.TDSLifeCycle.Invocation
constant.