Vcl.SvcMgr.TService.OnShutdown

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnShutdown: TServiceEvent read FOnShutdown write FOnShutdown;

C++

__property TServiceEvent OnShutdown = {read=FOnShutdown, write=FOnShutdown};

Properties

Type Visibility Source Unit Parent
event published
Vcl.SvcMgr.pas
Vcl.SvcMgr.hpp
Vcl.SvcMgr TService

Description

Occurs when the system running the service application is about to shut down.

Write an OnShutdown event handler to take specific action just before the service shuts down. The service application terminates immediately after OnShutdown.

See Also