API Reference

Class

OneNoteFileProbe

Namespace OfficeIMO.OneNote
Assembly OfficeIMO.OneNote
Modifiers static

Performs bounded physical-header inspection for OneNote files.

Inheritance

  • Object
  • OneNoteFileProbe

Methods

ReadHeader 2 overloads
public static OneNoteFileHeader ReadHeader(String path, OneNoteReaderOptions options = null) #
Returns: OneNoteFileHeader

Reads a OneNote header from a file path.

Parameters

path System.String requiredposition: 0
options OfficeIMO.OneNote.OneNoteReaderOptions = null optionalposition: 1
public static OneNoteFileHeader ReadHeader(Stream stream, OneNoteReaderOptions options = null) #
Returns: OneNoteFileHeader

Reads a OneNote header from a caller-owned stream. Seekable streams are read from the beginning and restored to their original position. Non-seekable streams are consumed only through the physical header prefix.

Parameters

stream System.IO.Stream requiredposition: 0
options OfficeIMO.OneNote.OneNoteReaderOptions = null optionalposition: 1
ReadHeaderAsync 2 overloads
public static async Task<OneNoteFileHeader> ReadHeaderAsync(String path, OneNoteReaderOptions options = null, CancellationToken cancellationToken = null) #
Returns: Task<OneNoteFileHeader>

Asynchronously reads a OneNote header from a file path.

Parameters

path System.String requiredposition: 0
options OfficeIMO.OneNote.OneNoteReaderOptions = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = null optionalposition: 2
public static Task<OneNoteFileHeader> ReadHeaderAsync(Stream stream, OneNoteReaderOptions options = null, CancellationToken cancellationToken = null) #
Returns: Task<OneNoteFileHeader>

Asynchronously reads a OneNote header from a caller-owned stream. Seekable streams are restored to their original position after the read.

Parameters

stream System.IO.Stream requiredposition: 0
options OfficeIMO.OneNote.OneNoteReaderOptions = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = null optionalposition: 2