UnhandledExceptionEventHandler Delegato

Definizione

Rappresenta il metodo che gestirà l'evento 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)

Parametri

sender
Object

Platform::Object

IInspectable

Oggetto in cui è associato il gestore.

e
UnhandledExceptionEventArgs

Dati dell'evento.

Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)

Commenti

Per altre info su come scrivere un gestore basato su questo delegato, vedi Gestione delle eccezioni per in C# o Visual Basic e Osservazioni in UnhandledException.

Si applica a

Vedi anche