UnhandledExceptionEventHandler 代理人

定義

表示將處理 UnhandledException 事件的方法。

public delegate void UnhandledExceptionEventHandler(Platform::Object ^ sender, UnhandledExceptionEventArgs ^ e);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2457134781, 18849, 18776, 190, 238, 208, 225, 149, 135, 182, 227)]
class UnhandledExceptionEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2457134781, 18849, 18776, 190, 238, 208, 225, 149, 135, 182, 227)]
public delegate void UnhandledExceptionEventHandler(object sender, UnhandledExceptionEventArgs e);
Public Delegate Sub UnhandledExceptionEventHandler(sender As Object, e As UnhandledExceptionEventArgs)

參數

sender
Object

Platform::Object

IInspectable

附加處理常式的物件。

e
UnhandledExceptionEventArgs

事件資料。

屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

如需如何根據此委派撰寫處理常式的詳細資訊,請參閱 C# 中的例外狀況處理或 Visual Basic 中的例外狀況處理和 UnhandledException中的備註。

適用於

另請參閱