RelayCommandAttribute.AllowConcurrentExecutions 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 allow concurrent executions for an asynchronous command.
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 when an execution is invoked while a previous one is still running. It is the same as creating an instance of these command types with a constructor such as AsyncRelayCommand(Func<Task>, AsyncRelayCommandOptions) and using the AllowConcurrentExecutions value.
public bool AllowConcurrentExecutions { get; init; }
member this.AllowConcurrentExecutions : bool with get, set
Public Property AllowConcurrentExecutions As Boolean
Property Value
Remarks
Using this property is not valid if the target command doesn't map to an asynchronous command.