Application.addOnApplicationExit

Overview | Methods | This Package | All Packages

Application.addOnApplicationExit

Adds an applicationExit event handler to the application.

Syntax

public static void addOnApplicationExit( EventHandler value )

Parameters

value

A com.ms.wfc.core.EventHandler that is called when an application quits.

Remarks

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