Class
ReaderTableExportMaterializer
OfficeIMO.Reader
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>
- Table export bundles.
- writeExport System.Action<OfficeIMO.Reader.ReaderTableExportBundle, OfficeIMO.Reader.ReaderTableExportFormat, System.IO.Stream>
- Callback that receives each export, format, and readable payload stream.
- options OfficeIMO.Reader.ReaderTableExportMaterializationOptions? = null
- Materialization options.
- cancellationToken System.Threading.CancellationToken = default
- 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>
- Table export bundles.
- directoryPath string
- Destination directory.
- options OfficeIMO.Reader.ReaderTableExportMaterializationOptions? = null
- Materialization options.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
Returns
IReadOnlyList<ReaderTableMaterializedExport>