UnhandledExceptionEventArgs(Boolean, Exception) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.