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

# AddNew Method of the ClassificationTrainingBatches Object

This method adds a new batch for classifier training at the end of the collection.

The name for the batch will be generated automatically. You may want to change it so that the batch will be easy to find in future, in which case use the [**Rename**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/classificationtrainingbatch-rename.md) method of the [**ClassificationTrainingBatch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/classificationtrainingbatch.md) object.

## Syntax

```vb Visual Basic .NET theme={null}
Function AddNew() As ClassificationTrainingBatch
```

```cpp C++ theme={null}
HRESULT AddNew(
  IClassificationTrainingBatch** Result
);
```

## Parameters

**Result**

\[out, retval] A pointer to the [**IClassificationTrainingBatch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/classificationtrainingbatch.md)**\*** variable that receives the interface pointer for the added batch.

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

## Samples

This method is used in the following code samples: [Classification](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#classification).

## See also

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