Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

ReaderNestedContent

Namespace OfficeIMO.Reader
Assembly OfficeIMO.Reader.Core
Source revision e31b305980e3 with working tree changes
Modifiers static

Lets a Reader handler delegate nested content to the same immutable handler set that selected it.

Inheritance

  • Object
  • ReaderNestedContent

Remarks

Archive, mailbox, and attachment adapters use this context to preserve selective package composition. The context is available while a handler is executing; callers outside a Reader operation have no registered nested handlers.

Methods

public static Boolean CanRead(String sourceName) #
Returns: Boolean

Returns true when the active Reader has a stream handler registered for the source name.

Parameters

sourceName System.String requiredposition: 0
public static IReadOnlyList<ReaderChunk> Read(Stream stream, String sourceName, ReaderOptions? options = null, CancellationToken cancellationToken = default) #
Returns: IReadOnlyList<ReaderChunk>

Reads nested content through the active Reader handler set.

Parameters

stream System.IO.Stream requiredposition: 0
sourceName System.String requiredposition: 1
options OfficeIMO.Reader.ReaderOptions? = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
public static OfficeDocumentReadResult ReadDocument(Stream stream, String sourceName, ReaderOptions? options = null, CancellationToken cancellationToken = default) #
Returns: OfficeDocumentReadResult

Reads a nested source without discarding its rich links, forms, assets or metadata.

Parameters

stream System.IO.Stream requiredposition: 0
sourceName System.String requiredposition: 1
options OfficeIMO.Reader.ReaderOptions? = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3