Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OneNoteTableOfContentsWriter

OfficeIMO.OneNote

Namespace
OfficeIMO.OneNote
Assembly
OfficeIMO.OneNote
Source revision
be6c300e4ab1 with working tree changes
Modifiers
static

Creates native offline .onetoc2 table-of-contents files.

Inheritance

  • object
  • OneNoteTableOfContentsWriter

Methods

Write 3 overloads
public static byte[] Write(OneNoteNotebook notebook, OneNoteSaveOptions? options = null) #

Serializes the root notebook hierarchy to a new byte array.

Parameters

notebook OfficeIMO.OneNote.OneNoteNotebook required
options OfficeIMO.OneNote.OneNoteSaveOptions? = null optional

Returns

byte[]
public static void Write(OneNoteNotebook notebook, Stream destination, OneNoteSaveOptions? options = null) #

Serializes the root notebook hierarchy to a caller-owned stream.

Parameters

notebook OfficeIMO.OneNote.OneNoteNotebook required
destination System.IO.Stream required
options OfficeIMO.OneNote.OneNoteSaveOptions? = null optional
public static void Write(OneNoteNotebook notebook, string path, OneNoteSaveOptions? options = null) #

Serializes the root notebook hierarchy to a file.

Parameters

notebook OfficeIMO.OneNote.OneNoteNotebook required
path string required
options OfficeIMO.OneNote.OneNoteSaveOptions? = null optional