Edit

Share via


RelayCommandAttribute.AllowConcurrentExecutions Property

Definition

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.

Applies to