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.155 -- Release Build+a7d8ba87ff92af3282fc68a6fbfd37a854100b44
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