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

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

このメソッドは、指定した field のデータに適用されているすべてのルールをチェックします。ルールは認識後に自動的にチェックされるため、認識直後にこのメソッドを手動で呼び出す必要はありません。ドキュメントに何らかの変更を加えた場合 (たとえば、field の値を修正した場合など) に、このメソッドを呼び出してください。

## 構文

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

```cpp C++ theme={null}
HRESULT CheckRules(
  IField* ModifiedField
);
```

## パラメーター

**ModifiedField**

\[in] この変数は、ルールのチェック対象となる文書フィールドに対応する [**Field**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/field.md) オブジェクトを参照します。

## 戻り値

このメソッドには固有の戻り値はありません。[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)
