> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CancelScan Method of the ScanSource Object

This method cancels the asynchronous scanning operation.

## Syntax

```vb Visual Basic .NET theme={null}
Sub CancelScan()
```

```cpp C++ theme={null}
HRESULT CancelScan();
```

## Return values

This method may return the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**ScanSource**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/scansource.md)
