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

# Batch オブジェクトの CheckRules メソッド

このメソッドは、指定されたドキュメント内のデータに設定されているすべてのルールをチェックします。

## 構文

```vb Visual Basic .NET theme={null}
Sub CheckRules(DocIds As IntsCollection)
```

```cpp C++ theme={null}
HRESULT CheckRules(
  IIntsCollection* DocIds
);
```

## パラメーター

**DocIds**

\[in] ルールをチェックする対象ドキュメントの識別子のセットを格納した [**IntsCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/intscollection.md) オブジェクトを参照します。このパラメーターには 0 を指定することもできます。その場合、バッチ内のすべてのドキュメントでルールがチェックされます。

## 戻り値

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

## 解説

特定の文書フィールドのルールをチェックするには、[**Document**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/document.md) オブジェクトの [**CheckRules**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/document-checkrules.md) メソッドを使用します。

## 関連項目

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

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