UnhandledExceptionEventArgs.ExitApplication 屬性

定義

指出應用程式是否應在結束例外狀況處理常式時結束。Indicates whether the application should exit upon exiting the exception handler.

public:
 property bool ExitApplication { bool get(); void set(bool value); };
public bool ExitApplication { get; set; }
member this.ExitApplication : bool with get, set
Public Property ExitApplication As Boolean

屬性值

Boolean,指出應用程式是否應在結束例外狀況處理常式時結束。A Boolean that indicates whether the application should exit upon exiting the exception handler.

備註

Visual Basic 應用程式模型會在執行 UnhandledException 事件的處理常式之後,檢查這個屬性的值。The Visual Basic Application Model checks the value of this property after running the handlers of the UnhandledException event. 如果 TrueExitApplication,則應用程式會結束。If ExitApplication is True, then the application exits. 否則,應用程式會繼續執行。Otherwise, the application continues to run. 如需詳細資訊,請參閱Visual Basic 應用程式模型的總覽For more information, see Overview of the Visual Basic Application Model.

適用於

另請參閱