Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

AdfDocument

Namespace OfficeIMO.Adf
Assembly OfficeIMO.Adf
Source revision 45ddf07f0b84 with working tree changes
Modifiers sealed

Represents an Atlas Document Format document while retaining fields that OfficeIMO does not yet understand.

Inheritance

  • Object
  • AdfDocument

Usage

Explore 6 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.

Returned or exposed by 3

Accepted by parameters 3

Constructors

AdfDocument 2 overloads
public AdfDocument() #

Creates an empty ADF document.

public AdfDocument(IEnumerable<AdfNode>? content) #

Creates an ADF document with the supplied top-level nodes.

Parameters

content System.Collections.Generic.IEnumerable<OfficeIMO.Adf.AdfNode>? requiredposition: 0

Methods

Parse 2 overloads
public static AdfDocument Parse(String json) #
Returns: AdfDocument

Parses an ADF JSON document and retains unrecognized fields for round trips.

Parameters

json System.String requiredposition: 0
public static AdfDocument Parse(String json, AdfProcessingOptions options) #
Returns: AdfDocument

Parses ADF JSON with explicit resource limits and cancellation.

Parameters

json System.String requiredposition: 0
options OfficeIMO.Adf.AdfProcessingOptions requiredposition: 1
ToJson 2 overloads
public String ToJson(Boolean indented = false) #
Returns: String

Serializes this document to ADF JSON without performing structural validation.

Parameters

indented System.Boolean = false optionalposition: 0
public String ToJson(AdfProcessingOptions options, Boolean indented = false) #
Returns: String

Serializes ADF JSON with explicit resource limits and cancellation.

Parameters

options OfficeIMO.Adf.AdfProcessingOptions requiredposition: 0
indented System.Boolean = false optionalposition: 1
Validate 4 overloads
public AdfValidationResult Validate() #
Returns: AdfValidationResult

Validates the structural ADF contract without rejecting unknown node or mark types.

public AdfValidationResult Validate(AdfProcessingOptions options) #
Returns: AdfValidationResult

Validates ADF structure with explicit resource limits and cancellation.

Parameters

options OfficeIMO.Adf.AdfProcessingOptions requiredposition: 0
public AdfValidationResult Validate(AdfValidationOptions options) #
Returns: AdfValidationResult

Validates against the selected structural or bundled full-schema contract.

Parameters

options OfficeIMO.Adf.AdfValidationOptions requiredposition: 0
public AdfValidationResult Validate(AdfValidationOptions options, CancellationToken cancellationToken) #
Returns: AdfValidationResult

Validates against the selected contract with cancellation during graph and rule traversal.

Parameters

options OfficeIMO.Adf.AdfValidationOptions requiredposition: 0
cancellationToken System.Threading.CancellationToken requiredposition: 1

Properties

public Int32 Version { get; set; } #

ADF schema version.

public String Type { get; set; } #

Root node type. A normal ADF document uses doc.

public List<AdfNode> Content { get; } #

Top-level document nodes.

public IDictionary<String, JsonElement> ExtensionData { get; } #

Unknown root properties retained during parse/write round trips.