Share via


UnhandledExceptionEventHandler 委托

定义

表示将处理 UnhandledException 事件的方法。

public delegate void UnhandledExceptionEventHandler(Platform::Object ^ sender, UnhandledExceptionEventArgs ^ e);
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(875020726, 24266, 22065, 132, 184, 91, 174, 115, 47, 182, 127)]
public delegate void UnhandledExceptionEventHandler(object sender, UnhandledExceptionEventArgs e);
Public Delegate Sub UnhandledExceptionEventHandler(sender As Object, e As UnhandledExceptionEventArgs)

参数

sender
Object

Platform::Object

附加处理程序的 对象。

e
UnhandledExceptionEventArgs

事件数据。

属性

注解

有关如何基于此委托编写处理程序的详细信息,请参阅 异常处理 (C# 编程指南) UnhandledException 中的注释。

适用于

另请参阅