Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OneNoteSaveOptions

OfficeIMO.OneNote

Namespace
OfficeIMO.OneNote
Assembly
OfficeIMO.OneNote
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
sealed

Controls native offline OneNote serialization.

Inheritance

  • object
  • OneNoteSaveOptions

Usage

Explore 5 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 5

Constructors

public OneNoteSaveOptions() #

Properties

public Guid? IdentitySeed { get; set; } #

Optional namespace for reproducible generated identifiers. Use the same seed for the same logical artifact; caller-supplied and preserved identities remain unchanged. Null keeps normal random identity generation.

public DateTime? GeneratedTimestampUtc { get; set; } #

Explicit UTC timestamp used when newly authored pages have no creation time. Required with OneNoteSaveOptions.IdentitySeed so generated metadata does not depend on the clock. Existing page times are retained.

public OneNoteStorageFormat StorageFormat { get; set; } #

Physical encoding for generated .one and .onetoc2 payloads. OneNoteStorageFormat.Unknown preserves a loaded artifact's source encoding and defaults new artifacts to OneNoteStorageFormat.RevisionStore.

public long MaxOutputBytes { get; set; } #

Maximum serialized output size. The default is 512 MiB.

public int MaxInkPathValues { get; set; } #

Maximum coordinate and pressure values written for one native ink path.

public bool ValidateRoundTrip { get; set; } #

Reads the generated artifact back and verifies page identity, order, relationships, structural content, rich-text runs, supported layout/media metadata, and binary payload resolution state before returning it.

public int MaxPackageEntries { get; set; } #

Maximum number of files emitted into a notebook directory or .onepkg archive.

public int MaxSectionGroupDepth { get; set; } #

Maximum nesting depth for notebook section groups. Values must be from 1 through OneNoteSaveOptions.MaximumTraversalDepth.

public int MaxPageRelationshipDepth { get; set; } #

Maximum nesting depth across conflict and version-history page relationships. Values must be from 1 through OneNoteSaveOptions.MaximumTraversalDepth.

public int MaxContentDepth { get; set; } #

Maximum recursive nesting depth for outlines, paragraphs, and table-cell content. Values must be from 1 through OneNoteSaveOptions.MaximumTraversalDepth.

public bool PreserveUnknownData { get; set; } #

Preserves source objects, properties, and relationships that are not replaced by typed edits. This is enabled by default for sections loaded by OfficeIMO.

Fields

public const int MaximumTraversalDepth #

Hard maximum accepted for recursive writer traversal limits.

Value: 256
public const int DefaultMaxContentDepth #

Default maximum nesting depth for serializable content elements.

Value: 128
public const int DefaultMaxSectionGroupDepth #

Default maximum nesting depth for notebook section groups.

Value: 32