# AdfProcessingOptions

Resource limits for ADF parsing, writing, validation and projections.

Class 

`OfficeIMO.Adf`

**Namespace**

`OfficeIMO.Adf`

**Assembly**

`OfficeIMO.Adf`

**Source revision**

`5e5a2dda74b3` with working tree changes

**Source**

[AdfProcessingOptions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfProcessingOptions.cs#L7)

Resource limits for ADF parsing, writing, validation and projections.

## Inheritance

- object
- AdfProcessingOptions

## Derived Types

- [AdfConversionOptions](/api/adf/officeimo-adf-adfconversionoptions/)
- [AdfValidationOptions](/api/adf/officeimo-adf-adfvalidationoptions/)

## Remarks

Limits reject the operation rather than truncating content. Cancellation is checked at ADF traversal boundaries; synchronous Markdown/HTML parsers are checked before and after their calls.

## 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 [AdfDocument.Parse](/api/adf/officeimo-adf-adfdocument/#method-parse-string-officeimo-adf-adfprocessingoptions) parameter `options`
- Method [AdfDocument.ToJson](/api/adf/officeimo-adf-adfdocument/#method-tojson-officeimo-adf-adfprocessingoptions-boolean) parameter `options`
- Method [AdfDocument.Validate](/api/adf/officeimo-adf-adfdocument/#method-validate-officeimo-adf-adfprocessingoptions) parameter `options`

Filter members 

Show inherited

## Constructors

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

[AdfProcessingOptions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfProcessingOptions.cs#L7)

## 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 int MaxInputBytes { get; set; }` [#](#property-maxinputbytes)

[AdfProcessingOptions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfProcessingOptions.cs#L7)

Maximum UTF-8 input size for JSON, Markdown or HTML text. Defaults to 16 MiB.

`public int MaxDepth { get; set; }` [#](#property-maxdepth)

[AdfProcessingOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfProcessingOptions.cs#L9)

Maximum content-node nesting depth, from 1 through 256. Defaults to 64. Markdown object input is checked against this depth before conversion.

`public int MaxNodes { get; set; }` [#](#property-maxnodes)

[AdfProcessingOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfProcessingOptions.cs#L11)

Maximum number of nodes and marks visited, including repeated references. Defaults to 100,000. Markdown object input is also checked against this object count.

`public int MaxTextCharacters { get; set; }` [#](#property-maxtextcharacters)

[AdfProcessingOptions.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfProcessingOptions.cs#L13)

Maximum aggregate text in nodes and JSON attribute/extension strings, in UTF-16 characters. Defaults to 16 Mi characters.

`public int MaxOutputBytes { get; set; }` [#](#property-maxoutputbytes)

[AdfProcessingOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfProcessingOptions.cs#L15)

Maximum serialized JSON size in UTF-8 bytes. Defaults to 32 MiB.

`public int MaxOutputCharacters { get; set; }` [#](#property-maxoutputcharacters)

[AdfProcessingOptions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfProcessingOptions.cs#L17)

Maximum Markdown or HTML result length in UTF-16 characters. Defaults to 32 Mi characters.

`public CancellationToken CancellationToken { get; set; }` [#](#property-cancellationtoken)

[AdfProcessingOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfProcessingOptions.cs#L19)

Cancellation observed during ADF traversal and JSON writes.

<!-- PowerForge markdown artifact sha256:3F8D011475C9BBCA19CFD9F3F36B3E05C9F0249E9A3430C0A0249FEEC446E6E3 -->
