RelayCommandAttribute.FlowExceptionsToTaskScheduler 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 indicating whether or not to exceptions should be propagated to UnobservedTaskException.
When set for an attribute used on a method that would result in an AsyncRelayCommand or an AsyncRelayCommand<T> property to be generated, this will modify the behavior of these commands in case an exception is thrown by the underlying operation. It is the same as creating an instance of these command types with a constructor such as AsyncRelayCommand(Func<Task>, AsyncRelayCommandOptions) and using the FlowExceptionsToTaskScheduler value.
public bool FlowExceptionsToTaskScheduler { get; init; }
member this.FlowExceptionsToTaskScheduler : bool with get, set
Public Property FlowExceptionsToTaskScheduler As Boolean
Property Value
Remarks
Using this property is not valid if the target command doesn't map to an asynchronous command.