Gemstone Common Library
Show/Hide TOC

# CancellationTokenCancel Method

Cancels the operation.

## Definition

Namespace: Gemstone.Threading.Cancellation
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.160 -- Release Build+19b74ac03cedad8575bb1ceb00051318b7421d0d
C#
View Source Request Example

    public bool Cancel()

VB
View Source Request Example

    Public Function Cancel As Boolean

C++
View Source Request Example

    public:
    virtual bool Cancel() sealed

JavaScript
View Source Request Example

    function Cancel();

#### Return Value

Boolean
true if the operation was cancelled; otherwise false.

#### Implements

ICancellationTokenCancel

## See Also

#### Reference

CancellationToken Class
Gemstone.Threading.Cancellation Namespace