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

# CheckRules Method of the Batch Object

This method checks all rules imposed on data in the specified documents.

## Syntax

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

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

## Parameters

**DocIds**

\[in] This parameter refers to the [**IntsCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/intscollection.md) object that contains a set of identifiers of the documents to check rules in. This parameter may be 0, in which case rules are checked in all the documents of the batch.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## Remarks

To check rules in a certain document field, use the [**CheckRules**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document-checkrules.md) method of the [**Document**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document.md) object.

## See also

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

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