System.Win.ComServ.TLastReleaseEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TLastReleaseEvent = procedure(var Shutdown: Boolean) of object;

C++

typedef void __fastcall (__closure *TLastReleaseEvent)(bool &Shutdown);

Properties

Type Visibility Source Unit Parent
type
typedef
public
System.Win.ComServ.pas
System.Win.ComServ.hpp
System.Win.ComServ System.Win.ComServ

Description

Type of event handler for the TComServer.OnLastRelease event.

The value that Shutdown has at the start of the event handler determines the action that is going to take place:

  • If Shutdown is true, the server is going to shutdown.
  • If Shutdown is false, the server is going to keep running.

Your event handler can change the value of Shutdown to either prevent or force the shutdown of the server.

See Also