UnhandledExceptionEventArgs.Handled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.