Open sandboxFocus

Property SupportsConcurrentExecution

SupportsConcurrentExecution

Gets or sets a value indicating whether several executions of the command can run concurrently. This property is only considered for asynchronous methods. Its default value is false, which means that the CanExecute(object) method will return false if another execution is still running. This property is ignored if the execution method is non-Task and the Background property is left to false.

Declaration
public bool SupportsConcurrentExecution { get; set; }
Property Value
Type Description
bool
Remarks

When SupportsConcurrentExecution is true, the ExecutionTask is set to the last started task, and the Cancel() only cancels the last started task. To track or cancel individual executions, use the DelegateCommandExecution returned by the Execute() method.