Class
OneNoteFileProbe
OfficeIMO.OneNote
Performs bounded physical-header inspection for OneNote files.
Inheritance
- object
- OneNoteFileProbe
Methods
ReadHeader 2 overloads
public static OneNoteFileHeader ReadHeader(string path, OneNoteLoadOptions? options = null) #Reads a OneNote header from a file path.
Parameters
- path string
- options OfficeIMO.OneNote.OneNoteLoadOptions? = null
Returns
OneNoteFileHeaderpublic static OneNoteFileHeader ReadHeader(Stream stream, OneNoteLoadOptions? options = null) #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
- options OfficeIMO.OneNote.OneNoteLoadOptions? = null
Returns
OneNoteFileHeaderReadHeaderAsync 2 overloads
public static async Task<OneNoteFileHeader> ReadHeaderAsync(string path, OneNoteLoadOptions? options = null, CancellationToken cancellationToken = default) #Asynchronously reads a OneNote header from a file path.
Parameters
- path string
- options OfficeIMO.OneNote.OneNoteLoadOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OneNoteFileHeader>public static Task<OneNoteFileHeader> ReadHeaderAsync(Stream stream, OneNoteLoadOptions? options = null, CancellationToken cancellationToken = default) #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
- options OfficeIMO.OneNote.OneNoteLoadOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OneNoteFileHeader>