UnhandledExceptionEventArgs(Boolean, Exception) Konstruktor

Definition

Initierar en ny instans av UnhandledExceptionEventArgs klassen.

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)

Parametrar

exitApplication
Boolean

En Boolean som anger om programmet ska avslutas när undantagshanteraren avslutas.

exception
Exception

Det som inträffade var Exception.

Kommentarer

Händelsen UnhandledException inträffar när ett ohanterat undantag inträffar i ett program som implementerar Visual Basic-programmodellen. Mer information finns i Översikt över Visual Basic programmodell.

UnhandledExceptionEventArgs innehåller det Exception inträffade och anger om programmet ska avslutas när undantagshanteraren avslutas.

Gäller för

Se även