> ## 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.

# Close Method of the VerificationSession Object

This method closes the verification session.

Release all the references to the **VerificationSession** object, and then call this method. An open verification session uses more resources than a closed one. So if you have finished verification and need to free some resources, call this method to close the verification session. We recommend using this method in **finally** blocks.

## Syntax

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

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

## Return values

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

## See also

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

[**IBatch::StartVerification**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-startverification.md)
