Table of Contents

Method CreateNotebook

Namespace
Odotocodot.OneNote.Linq
Assembly
Odotocodot.OneNote.Linq.dll

CreateNotebook(string, bool)

Creates a notebook with a title equal to name located in the default notebook location.

public static string CreateNotebook(string name, bool openImmediately)

Parameters

name string

The name of the new notebook.

openImmediately bool

Whether to open the newly created notebook in OneNote immediately.

Returns

string

The Odotocodot.OneNote.Linq.OneNoteNotebook.ID of the newly created notebook.

Exceptions

ArgumentException

Thrown if the name is not a valid notebook name.