> ## 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 オブジェクトの FindByName メソッド

このメソッドを使用すると、名前を指定してバッチを検索できます。

## 構文

```vb Visual Basic .NET theme={null}
Function FindByName(Name As String) As Batch
```

```cpp C++ theme={null}
HRESULT FindByName(
  BSTR     Name,
  IBatch** Result
);
```

## パラメーター

**Name**

\[in] この変数には、検索するバッチの名前が格納されます。

**Result**

\[out, retval] バッチのインターフェースポインターを受け取る [**IBatch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md)\*\*\*\*\* 変数へのポインター。指定した名前のバッチが見つからない場合は NULL を返します。

## 戻り値

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

## 関連項目

[**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)
