Class
OneNotePackageWriter
OfficeIMO.OneNote
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
- options OfficeIMO.OneNote.OneNoteSaveOptions? = null
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
- destination System.IO.Stream
- options OfficeIMO.OneNote.OneNoteSaveOptions? = null
public static void Write(OneNoteNotebook notebook, string path, OneNoteSaveOptions? options = null) #Serializes a complete notebook to a .onepkg file.
Parameters
- notebook OfficeIMO.OneNote.OneNoteNotebook
- path string
- options OfficeIMO.OneNote.OneNoteSaveOptions? = null