> ## 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 ClassificationTrainingDocument Object

This method closes the document for classification training. It allows you to free some resources and save the changes made to the document.

## Syntax

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

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

## Parameters

**SaveChanges**

\[in] This variable specifies whether the changes made to the document for classification training should be saved. If the value of this parameter is FALSE, the changes are not saved. This parameter is optional. The default value of the parameter is TRUE.

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

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