इसके माध्यम से साझा किया गया


UnhandledExceptionEventHandler Delegate

Definition

Represents the method that will handle the UnhandledException event.

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)

Parameters

sender
Object

Platform::Object

IInspectable

The object where the handler is attached.

Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

For more info on how to write a handler based on this delegate, see Exception handling for in C# or Visual Basic and Remarks in UnhandledException.

Applies to

See also