# CancelProc Class

> A callback function used to abort an operation.

- Product: Adobe PDF Library 18
- Language: .NET
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/CancelProc
- Version index: https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/llms.txt

```csharp
class CancelProc : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## Description

A callback function used to abort an operation.

A CancelProc() value is typically passed to a method that uses it to determine if an asynchronous operation should be ended.

At periodic intervals, the method calls the CancelProc. If the CancelProc returns a "true" boolean value, the method cancels the operation. If CancelProc returns false, the method allows the operation to continue. For example, CancelProc could be used to allow a user to click a Cancel button to end a function.

**Referenced by:** [`CancelProc`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/CancelProc.md), [`Document`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/Document.md), [`DrawParams`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/DrawParams.md), [`PDFOptimizer`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/PDFOptimizer.md), [`SignDoc`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/SignDoc.md)

**Uses types:** [`CancelProc`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/CancelProc.md)

## Constructors

### CancelProc

```csharp
Datalogics.PDFL.CancelProc.CancelProc()
```

*constructor*

A callback function used to abort an operation.

A CancelProc() value is typically passed to a method that uses it to determine if an asynchronous operation should be ended.

At periodic intervals, the method calls the CancelProc. If the CancelProc returns a "true" boolean value, the method cancels the operation. If CancelProc returns false, the method allows the operation to continue. For example, CancelProc could be used to allow a user to click a Cancel button to end a function.

## Methods

### Call

```csharp
virtual bool Datalogics.PDFL.CancelProc.Call()
```

**Returns:** `bool`

### Dispose

```csharp
void Datalogics.PDFL.CancelProc.Dispose()
```

**Returns:** `void`
