# OneNoteNotebookReaderOptions

Controls offline notebook and table-of-contents loading.

Class 

`OfficeIMO.OneNote`

**Namespace**

`OfficeIMO.OneNote`

**Assembly**

`OfficeIMO.OneNote`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OneNoteNotebookReaderOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L9)

**Modifiers**

sealed

Controls offline notebook and table-of-contents loading.

## Inheritance

- object
- OneNoteNotebookReaderOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Read and Write OneNote Notebooks](/docs/onenote/notebooks/) Guide
  
  Open OneNote notebooks from a folder, a .onetoc2 file or a .onepkg export, walk section groups and sections, and write notebooks offline.

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 2

- Method [OneNoteNotebookReader.Read](/api/onenote/officeimo-onenote-onenotenotebookreader/#method-read-string-officeimo-onenote-onenotenotebookreaderoptions) parameter `options`
- Method [OneNotePackageReader.Read](/api/onenote/officeimo-onenote-onenotepackagereader/#method-read-string-officeimo-onenote-onenotenotebookreaderoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public OneNoteNotebookReaderOptions()` [#](#constructor-ctor)

[OneNoteNotebookReaderOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L9)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OneNoteLoadOptions OneNoteOptions { get; set; }` [#](#property-onenoteoptions)

[OneNoteNotebookReaderOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L9)

Limits used when reading each .onetoc2 and .one revision store.

`public bool LoadSectionContent { get; set; }` [#](#property-loadsectioncontent)

[OneNoteNotebookReaderOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L12)

Loads each section's pages and assets instead of returning TOC metadata only.

`public bool ContinueOnSectionError { get; set; }` [#](#property-continueonsectionerror)

[OneNoteNotebookReaderOptions.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L18)

Continues loading other sections when one section is corrupt, encrypted, or uses an unsupported legacy variant. The failed section remains in the hierarchy and a diagnostic is emitted.

`public bool RecurseSectionGroups { get; set; }` [#](#property-recursesectiongroups)

[OneNoteNotebookReaderOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L21)

Recursively loads nested section-group TOC files.

`public bool IncludeRecycleBin { get; set; }` [#](#property-includerecyclebin)

[OneNoteNotebookReaderOptions.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L24)

Includes the special OneNote_RecycleBin section group.

`public int MaxSectionGroupDepth { get; set; }` [#](#property-maxsectiongroupdepth)

[OneNoteNotebookReaderOptions.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L27)

Maximum nested section-group depth.

`public int MaxNotebookEntries { get; set; }` [#](#property-maxnotebookentries)

[OneNoteNotebookReaderOptions.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L30)

Maximum total number of TOC entries across the notebook.

`public int MaxPackageEntries { get; set; }` [#](#property-maxpackageentries)

[OneNoteNotebookReaderOptions.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L33)

Maximum number of files stored in a .onepkg cabinet.

`public long MaxPackageExpandedBytes { get; set; }` [#](#property-maxpackageexpandedbytes)

[OneNoteNotebookReaderOptions.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L36)

Maximum total bytes after expanding a .onepkg cabinet.

`public long MaxPackageEntryBytes { get; set; }` [#](#property-maxpackageentrybytes)

[OneNoteNotebookReaderOptions.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L39)

Maximum expanded size of one .onepkg entry.

## Fields

`public const int DefaultMaxSectionGroupDepth` [#](#field-defaultmaxsectiongroupdepth)

[OneNoteNotebookReaderOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Reading/OneNoteNotebookReaderOptions.cs#L6)

Default maximum nested section-group depth.

Value: `32`

<!-- PowerForge markdown artifact sha256:FD2F50F5D76E517E5A393696DE8B841FEF1FBFD45BDAB8C27B1E2CF6264B548D -->
