UnhandledExceptionEventArgs.ExitApplication UnhandledExceptionEventArgs.ExitApplication UnhandledExceptionEventArgs.ExitApplication UnhandledExceptionEventArgs.ExitApplication Property

Definition

Indicates whether the application should exit upon exiting the exception handler.

public:
 property bool ExitApplication { bool get(); void set(bool value); };
[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
[set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public bool ExitApplication { get; set; }
member this.ExitApplication : bool with get, set
Public Property ExitApplication As Boolean
Property Value

A Boolean that indicates whether the application should exit upon exiting the exception handler.

Remarks

The Visual Basic Application Model checks the value of this property after running the handlers of the UnhandledException event. If ExitApplication is True, then the application exits. Otherwise, the application continues to run. For more information, see Overview of the Visual Basic Application Model.

Applies to

See Also