ServiceApplication.Stop Event

Occurs in two situations: When the user selects Stop from the Service Control Manager on Windows. In this case, ShuttingDown is False.

Syntax
Stop ( ShuttingDown )

Parameters
ShuttingDown | Boolean

# Notes

This event also occurs when the computer is shutting down. In this case ShuttingDown is True. This event occurs when you call the Quit method on any platform or when the service terminates. The ShuttingDown parameter is supported only on Windows.