Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OneNotePackageWriter

OfficeIMO.OneNote

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

Creates portable Cabinet-based .onepkg notebook archives.

Inheritance

  • object
  • OneNotePackageWriter

Methods

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

Serializes a complete notebook to a new .onepkg 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 a complete notebook 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 a complete notebook to a .onepkg file.

Parameters

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