Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OneNoteNotebookWriter

OfficeIMO.OneNote

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

Creates a native offline notebook directory containing .onetoc2 and .one files.

Inheritance

  • object
  • OneNoteNotebookWriter

Methods

public static void Write(OneNoteNotebook notebook, string directoryPath, OneNoteSaveOptions? options = null) #

Publishes a complete notebook to a new or empty directory. An existing empty directory is populated in place with its root table of contents written last. Open the notebook after this method returns. Existing files are never overwritten.

Parameters

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