UnhandledExceptionEventArgs(Boolean, Exception) Constructor

Definition

Initializes a new instance of the UnhandledExceptionEventArgs class.

public:
 UnhandledExceptionEventArgs(bool exitApplication, Exception ^ exception);
public UnhandledExceptionEventArgs (bool exitApplication, Exception exception);
new Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs : bool * Exception -> Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs
Public Sub New (exitApplication As Boolean, exception As Exception)

Parameters

exitApplication
Boolean

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

exception
Exception

The Exception that occurred.

Remarks

The UnhandledException event occurs when an unhandled exception occurs in an application that implements the Visual Basic Application Model. For more information, see Overview of the Visual Basic Application Model.

UnhandledExceptionEventArgs contains the Exception that occurred and indicates whether the application should exit upon exiting the exception handler.

Applies to

See also