[This is preliminary documentation and is subject to change.]
When implemented in a derived class, executes when a Pause command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service pauses.
| C# | Visual Basic | Managed C++ | J# |
protected override void OnPause ()
Protected Overrides Sub OnPause
protected: virtual void OnPause () override
protected void OnPause ()