CompatibleCancellationTokenCancel Method

Cancels the operation.

Definition

Namespace: Gemstone.Threading.Cancellation
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.170 -- Release Build+d52ae7197b8b2924ea9e1e530d25301718816611
public virtual bool Cancel()

Return Value

Boolean
true if the operation was cancelled; otherwise false.

Implements

ICancellationTokenCancel

Remarks

The token can only be cancelled if a CancellationTokenSource was provided.

Exceptions

InvalidOperationExceptionCancellationTokenSource not available, token cannot be cancelled.

See Also