[This is preliminary documentation and is subject to change.]
When implemented in a derived class, executes when the system is shutting down. Specifies what should happen immediately prior to the system shutting down.
| C# | Visual Basic | Managed C++ | J# |
protected override void OnShutdown ()
Protected Overrides Sub OnShutdown
protected: virtual void OnShutdown () override
protected void OnShutdown ()