Bagikan melalui


UnhandledExceptionEventHandler Delegasikan

Definisi

Mewakili metode yang akan menangani peristiwa 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)

Parameter

sender
Object

Platform::Object

IInspectable

Objek tempat handler dilampirkan.

e
UnhandledExceptionEventArgs

Data peristiwa.

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)

Keterangan

Untuk informasi selengkapnya tentang cara menulis handler berdasarkan delegasi ini, lihat Penanganan pengecualian untuk di C# atau Visual Basic dan Remarks di UnhandledException.

Berlaku untuk

Lihat juga