UnhandledExceptionEventArgs(Boolean, Exception) Konstruktor

Definition

Initialisiert eine neue Instanz der UnhandledExceptionEventArgs-Klasse.

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)

Parameter

exitApplication
Boolean

Ein Boolean, der angibt, ob die Anwendung nach Beendigung des Ausnahmehandlers beendet werden soll.

exception
Exception

Die Exception, die aufgetreten ist.

Hinweise

Das UnhandledException Ereignis tritt auf, wenn eine nicht behandelte Ausnahme in einer Anwendung auftritt, die das Visual Basic-Anwendungsmodell implementiert. Weitere Informationen finden Sie unter Übersicht über das Visual Basic-Anwendungsmodell.

UnhandledExceptionEventArgs enthält den Exception aufgetretenen und gibt an, ob die Anwendung beim Beenden des Ausnahmehandlers beendet werden soll.

Gilt für:

Weitere Informationen