Sprache

UnhandledExceptionEventHandler Delegat

Definition

Stellt die Methode dar, die das UnhandledException-Ereignis behandelt.

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

Das Objekt, in dem der Handler angefügt ist.

e
UnhandledExceptionEventArgs

Ereignisdaten.

Attribute

Windows-Anforderungen

Anforderungen Beschreibung
Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

Weitere Informationen zum Schreiben eines Handlers basierend auf diesem Delegat finden Sie unter Ausnahmebehandlung für in C# oder Visual Basic und Hinweise in UnhandledException.

Gilt für:

Siehe auch