CompatibleCancellationTokenCancel Method

Cancels the operation.

Definition

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