System.Win.ComServ.TLastReleaseEvent
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
Shutdownistrue, the server is going to shutdown. - If
Shutdownisfalse, 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.