NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ServiceBase.OnShutdown

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();

See Also

ServiceBase Class | ServiceBase Members | System.ServiceProcess Namespace