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

# Batches オブジェクトの AddNewEx メソッド

このメソッドは、指定したバッチタイプのバッチをバッチコレクションの末尾に追加します。

## 構文

```vb Visual Basic .NET theme={null}
Function AddNewEx( _
  Type As BatchType _
) As Batch
```

```cpp C++ theme={null}
HRESULT AddNewEx(
  IBatchType* Type,
  IBatch**    Result
);
```

## パラメーター

**Type**

\[in] バッチタイプを指定する [**BatchType**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batchtype.md) オブジェクトへの参照です。

**Result**

\[out, retval] 追加されたバッチのインターフェースポインターを受け取る [**IBatch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.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)

## 関連項目

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

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