# ReaderBatchOptions

Bounds multi-document asynchronous Reader execution.

Class 

`OfficeIMO.Reader`

**Namespace**

`OfficeIMO.Reader`

**Assembly**

`OfficeIMO.Reader.Core`

**Source revision**

`07c6bff0a794` with working tree changes

**Source**

[ReaderBatchOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Reader.Core/ReaderBatchOptions.cs#L19)

**Modifiers**

sealed

Bounds multi-document asynchronous Reader execution.

## Inheritance

- object
- ReaderBatchOptions

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 3

- Method [OfficeDocumentReader.ReadDocumentsAsCompletedAsync](/api/reader/officeimo-reader-officedocumentreader/#method-readdocumentsascompletedasync-collections-generic-ienumerable-system-string-action-officeimo-reader-readerdocumentreadoutcome-officeimo-reader-readeroptions-officeimo-reader-readerbatchoptions-threading-cancellationtoken) parameter `batchOptions`
- Method [OfficeDocumentReader.ReadDocumentsAsync](/api/reader/officeimo-reader-officedocumentreader/#method-readdocumentsasync-collections-generic-ienumerable-system-string-officeimo-reader-readeroptions-officeimo-reader-readerbatchoptions-threading-cancellationtoken) parameter `batchOptions`
- Method [OfficeDocumentReader.ReadDocumentsDetailedAsync](/api/reader/officeimo-reader-officedocumentreader/#method-readdocumentsdetailedasync-collections-generic-ienumerable-system-string-officeimo-reader-readeroptions-officeimo-reader-readerbatchoptions-action-officeimo-reader-readerdocumentreadoutcome-threading-cancellationtoken) parameter `batchOptions`

Filter members 

Show inherited

## Constructors

`public ReaderBatchOptions()` [#](#constructor-ctor)

[ReaderBatchOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Reader.Core/ReaderBatchOptions.cs#L19)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public long? MaxTotalBytes { get; set; }` [#](#property-maxtotalbytes)

[ReaderBatchOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Reader.Core/ReaderBatchOptions.cs#L9)

Optional combined source-byte allowance. Reads run in input order when set so each native admission is bounded by the remaining allowance.

`public int? MaxDegreeOfParallelism { get; set; }` [#](#property-maxdegreeofparallelism)

[ReaderBatchOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Reader.Core/ReaderBatchOptions.cs#L14)

Maximum number of document reads in flight. Null uses the reader's configured limit.

`public int MaxDocuments { get; set; }` [#](#property-maxdocuments)

[ReaderBatchOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Reader.Core/ReaderBatchOptions.cs#L19)

Maximum number of input documents accepted by one batch. Default: 500.

<!-- PowerForge markdown artifact sha256:1D263E70E880C7FAD6C1821CE61979F6D825B3B8C5ED365A51A5146A646D09A8 -->
