RequestCatch Property
Gets or sets whether the exception should be caught and the event handlers called..
Definition
Namespace: Avalonia.Threading
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public bool RequestCatch { get; set; }
Public Property RequestCatch As Boolean
Get
Set
member RequestCatch : bool with get, set
Property Value
BooleanRemarks
A filter handler can set this property to false to request that the exception not be caught, to avoid the callstack getting unwound up to the Dispatcher.
A previous handler in the event multicast might have already set this property to false, signalling that the exception will not be caught. We let the "don't catch" behavior override all others because it most likely means a debugging scenario.
See Also
Reference
DispatcherUnhandledExceptionFilterEventArgs Class
Avalonia.Threading Namespace