System.Win.ComServ.TComServer.OnLastRelease

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnLastRelease: TLastReleaseEvent read FOnLastRelease write FOnLastRelease;

C++

__property TLastReleaseEvent OnLastRelease = {read=FOnLastRelease, write=FOnLastRelease};

Properties

Type Visibility Source Unit Parent
event public
System.Win.ComServ.pas
System.Win.ComServ.hpp
System.Win.ComServ TComServer

Description

Occurs when the last object using the server is released.

Use OnLastRelease to write a handler to process some action after the last object using the server is released, and just before the server shuts down. ShutDown indicates whether the server should be unloaded.

TLastReleaseEvent is the type of the OnLastRelease event. Shutdown indicates whether the server will shut down after processing the OnLastRelease event.

See Also