Adds an applicationExit event handler to the application.
public static void addOnApplicationExit( EventHandler value )
value
A com.ms.wfc.core.EventHandler that is called when an application quits.
An application exit event is triggered just before the application quits. This gives an application the chance to clean up any objects that may not otherwise be released through garbage collection. The closing of an application cannot be prevented in an event handler for the applicationExit event. Instead, to prevent the closing of an application, you can handle the closing event of the main form of your application.
See Also removeOnApplicationExit, addOnClosing, removeOnClosing