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.181 -- Release Build+97279656b5a55675063a4190481e67c4f9809501
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