AsyncRelayCommandOptions Enum
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.
Options to customize the behavior of AsyncRelayCommand and AsyncRelayCommand<T> instances.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum AsyncRelayCommandOptions
[<System.Flags>]
type AsyncRelayCommandOptions =
Public Enum AsyncRelayCommandOptions
- Inheritance
-
AsyncRelayCommandOptions
- Attributes
Fields
Name | Value | Description |
---|---|---|
None | 0 | No option is specified. The AsyncRelayCommand and AsyncRelayCommand<T> types will use their default behavior: |
AllowConcurrentExecutions | 1 | Concurrent executions are allowed. This option makes it so that the same command can be invoked concurrently multiple times. Note that additional considerations should be taken into account in this case: |
FlowExceptionsToTaskScheduler | 2 | Exceptions are not thrown on the calling context, and are propagated to UnobservedTaskException instead. This affects how calls to Execute(Object) behave. When this option is used, if an operation fails, that exception will not be rethrown on the calling context (as it is not awaited there). Instead, it will flow to UnobservedTaskException. This option enables more advanced scenarios, where the ExecutionTask property can be used to inspect the state of an operation that was queued. That is, even if the operation failed or was canceled, the details of that can be retrieved at a later time by accessing this property. |