UnhandledExceptionEventArgs.Handled UnhandledExceptionEventArgs.Handled UnhandledExceptionEventArgs.Handled UnhandledExceptionEventArgs.Handled Property

Definition

Gets or sets a value that indicates whether the exception is handled.

public : Platform::Boolean Handled { get; set; }
bool Handled();

void Handled(bool handled);
public bool Handled { get; set; }
Public ReadWrite Property Handled As bool

Property Value

bool bool

true to mark the exception as handled, which indicates that the event system should not process it further; otherwise, false.

Remarks

Do not routinely set this value to true, that is not always safe and may not guarantee that the app wouldn't terminate anyways. For more info, see Exception handling for in C# or Visual Basic and Remarks in UnhandledException.

See also