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

# OpenBatch

> ABBYY FlexiCapture Web Services API の OpenBatch メソッドを使用してバッチを開き、他の接続から削除されないようにロックし、成功フラグを返します。

<div id="what-it-does">
  ## 動作
</div>

バッチを開きます (ほかの接続から削除されないようにロックします) 。バッチを削除するには、先に [CloseBatch](/ja/flexi-capture/api/methods/close-batch) メソッドで閉じてください。

<div id="definition">
  ## 定義
</div>

```
bool OpenBatch ( int sessionId, int batchId );
```

<div id="parameters">
  ## パラメーター
</div>

| **名前**    | **型** | **説明**                     |
| --------- | ----- | -------------------------- |
| sessionId | int   | Application Server への接続のID |
| batchId   | int   | 開くバッチのID                   |

<div id="returned-value">
  ## 戻り値
</div>

| **型** | **説明**               |
| ----- | -------------------- |
| bool  | 操作が正常に完了したかどうかを示すフラグ |
