Compartilhar via


IUIThreadOperationTimeoutController.ShouldCancel Method

Definition

Gets whether an operation, whose execution time exceeded CancelAfter timeout should be cancelled.

public:
 bool ShouldCancel();
public bool ShouldCancel ();
abstract member ShouldCancel : unit -> bool
Public Function ShouldCancel () As Boolean

Returns

Remarks

This callback can be used to disable auto-cancellation when an operation already passed the point of no cancellation and it would leave system in an inconsistent state. This method is called on a background thread.

Applies to