Called when the system is shutting down. This function should be overridden when the CanShutdown property is true.
[Visual Basic] Overridable Protected Sub OnShutdown() [C#] protected virtual void OnShutdown(); [C++] protected: virtual void OnShutdown(); [JScript] protected function OnShutdown();
ServiceBase Class | ServiceBase Members | System.ServiceProcess Namespace