Edit

Share via


IAsyncRelayCommand.CanBeCanceled Property

Definition

Gets a value indicating whether a running operation for this command can currently be canceled.

public bool CanBeCanceled { get; }
member this.CanBeCanceled : bool
Public ReadOnly Property CanBeCanceled As Boolean

Property Value

Remarks

The exact sequence of events that types implementing this interface should raise is as follows:

This only applies if the underlying logic for the command actually supports cancelation. If that is not the case, then CanBeCanceled and IsCancellationRequested will always remain false regardless of the current state of the command.

Applies to