Share via


UnhandledExceptionEventArgs.Handled Property

Definition

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

public:
 property bool Handled { bool get(); void set(bool value); };
bool Handled();

void Handled(bool value);
public bool Handled { get; set; }
var boolean = unhandledExceptionEventArgs.handled;
unhandledExceptionEventArgs.handled = boolean;
Public Property Handled As Boolean

Property Value

Boolean

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.

Applies to

See also