Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ReaderTableExportMaterializer

OfficeIMO.Reader

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

Helpers for writing or streaming table export sidecars.

Inheritance

  • object
  • ReaderTableExportMaterializer

Methods

public static IReadOnlyList<ReaderTableMaterializedExport> StreamTableExports(IEnumerable<ReaderTableExportBundle> exports, Action<ReaderTableExportBundle, ReaderTableExportFormat, Stream> writeExport, ReaderTableExportMaterializationOptions? options = null, CancellationToken cancellationToken = default) #

Streams table export sidecars to a caller-owned callback without writing files.

Parameters

exports System.Collections.Generic.IEnumerable<OfficeIMO.Reader.ReaderTableExportBundle> required
Table export bundles.
writeExport System.Action<OfficeIMO.Reader.ReaderTableExportBundle, OfficeIMO.Reader.ReaderTableExportFormat, System.IO.Stream> required
Callback that receives each export, format, and readable payload stream.
options OfficeIMO.Reader.ReaderTableExportMaterializationOptions? = null optional
Materialization options.
cancellationToken System.Threading.CancellationToken = default optional
Cancellation token.

Returns

IReadOnlyList<ReaderTableMaterializedExport>
public static IReadOnlyList<ReaderTableMaterializedExport> WriteTableExportsToDirectory(IEnumerable<ReaderTableExportBundle> exports, string directoryPath, ReaderTableExportMaterializationOptions? options = null, CancellationToken cancellationToken = default) #

Writes table export sidecars to directoryPath using each bundle's deterministic filename stem.

Parameters

exports System.Collections.Generic.IEnumerable<OfficeIMO.Reader.ReaderTableExportBundle> required
Table export bundles.
directoryPath string required
Destination directory.
options OfficeIMO.Reader.ReaderTableExportMaterializationOptions? = null optional
Materialization options.
cancellationToken System.Threading.CancellationToken = default optional
Cancellation token.

Returns

IReadOnlyList<ReaderTableMaterializedExport>