UnhandledExceptionEventArgs 類別

定義

提供 UnhandledException 事件的資料。

public ref class UnhandledExceptionEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UnhandledExceptionEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UnhandledExceptionEventArgs
Public NotInheritable Class UnhandledExceptionEventArgs
繼承
Object Platform::Object IInspectable UnhandledExceptionEventArgs
屬性

備註

如需如何根據UnhandledExceptionEventHandler委派撰寫處理常式的詳細資訊,請參閱UnhandledException中的例外狀況處理 (C# 程式設計手冊) 和備註。

屬性

Exception

HRESULT取得與未處理的例外狀況相關聯的程式碼。

Handled

取得或設定值,指出是否已處理例外狀況。

Message

取得原始未處理的例外狀況所傳遞的訊息字串。

適用於

另請參閱