Property canBeCancelled
canBeCancelled
Gets a value indicating whether a running operation for this command can currently be canceled.
Declaration
bool canBeCancelled { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The exact sequence of events that types implementing this interface should raise is as follows:
- The command is initially not running: isRunning, canBeCancelled and isCancellationRequested are false.
- The command starts running: isRunning and canBeCancelled switch to true. isCancellationRequested is set to false.
- If the operation is canceled: canBeCancelled switches to false and isCancellationRequested switches to true.
- The operation completes: isRunning and canBeCancelled switch to false. The state of isCancellationRequested is undefined.