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

# ClassificationTrainingBatches オブジェクトの AddNew メソッド

このメソッドは、分類器の学習用の新しいバッチをコレクションの末尾に追加します。

バッチ名は自動的に生成されます。後でバッチを見つけやすくするために名前を変更する場合は、[**ClassificationTrainingBatch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/classificationtrainingbatch.md) オブジェクトの [**Rename**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/classificationtrainingbatch-rename.md) メソッドを使用してください。

## 構文

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

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

## パラメーター

**Result**

\[out, retval] 追加されたバッチのインターフェースポインターを受け取る [**IClassificationTrainingBatch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/classificationtrainingbatch.md)\*\*\*\*\* 型変数へのポインター。

## 戻り値

このメソッドに固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## サンプル

このメソッドは、次のコード サンプルで使用されています：[分類](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/samples.md#classification)

## 関連項目

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