CompatibleCancellationTokenCancel Method

Cancels the operation.

Definition

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