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.159 -- Release Build+a612c25bc0e1c87e5766544ec4650d2ebcfddcf4
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