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.176 -- Release Build+c74560d581224bfee7a285d73926fb4fb3df8ece
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