UnhandledExceptionEventArgs(Boolean, Exception) 建構函式

定義

初始化 UnhandledExceptionEventArgs 類別的新執行個體。

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)

參數

exitApplication
Boolean

A Boolean 表示應用程式在退出例外處理器時是否應該退出。

exception
Exception

Exception發生的 。

備註

UnhandledException 事件發生在實作 Visual Basic 應用模型的應用程式中,發生未處理的例外。 欲了解更多資訊,請參閱 Visual Basic 應用模型概述

UnhandledExceptionEventArgs 包含 Exception 發生的 ,並指示應用程式在退出例外處理器時是否應該退出。

適用於

另請參閱