AdfProcessingOptions
OfficeIMO.Adf
Resource limits for ADF parsing, writing, validation and projections.
Inheritance
- object
- AdfProcessingOptions
Derived Types
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
- Method AdfDocument.ToJson
- Method AdfDocument.Validate
Constructors
public AdfProcessingOptions() #Inherited Methods
Properties
public int MaxInputBytes { get; set; } #Maximum UTF-8 input size for JSON, Markdown or HTML text. Defaults to 16 MiB.
public int MaxDepth { get; set; } #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; } #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; } #Maximum aggregate text in nodes and JSON attribute/extension strings, in UTF-16 characters. Defaults to 16 Mi characters.
public int MaxOutputBytes { get; set; } #Maximum serialized JSON size in UTF-8 bytes. Defaults to 32 MiB.
public int MaxOutputCharacters { get; set; } #Maximum Markdown or HTML result length in UTF-16 characters. Defaults to 32 Mi characters.
public CancellationToken CancellationToken { get; set; } #Cancellation observed during ADF traversal and JSON writes.