UnhandledExceptionEventArgs.Handled Property


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

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

void Handled(bool value);
public bool Handled { get; set; }
Public Property Handled As Boolean

Property Value


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


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