Show: Delphi C++
Display Preferences

Datasnap.DSServer.TDSServerClass.OnDestroyInstance

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance