CompatibleCancellationTokenCancel Method

Cancels the operation.

Definition

Namespace: Gemstone.Threading.Cancellation
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.172 -- Release Build+241430fabc9f8d815f226ef82f939af6835b2b48
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