Called when a Pause Command message is sent to to the service. This function is expected to be overridden when the CanPauseAndContinue property is true.
[Visual Basic] Overridable Protected Sub OnPause() [C#] protected virtual void OnPause(); [C++] protected: virtual void OnPause(); [JScript] protected function OnPause();
ServiceBase Class | ServiceBase Members | System.ServiceProcess Namespace