API Reference
Cmdlet
Get-OfficeDocumentBatch
Reads a bounded set of documents asynchronously while retaining input order.
Remarks
Reads a bounded set of documents asynchronously while retaining input order.
Examples
Read documents with four operations in flight.
PS>
$batch = [OfficeIMO.Reader.ReaderBatchOptions]::new(); $batch.MaxDegreeOfParallelism = 4; Get-ChildItem .\Reports -File | Get-OfficeDocumentBatch -BatchOptions $batch
OfficeIMO.Reader bounds concurrency and returns results in pipeline input order.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Get-OfficeDocumentBatch [-BatchOptions <ReaderBatchOptions>] -Path <String[]> [-Reader <OfficeDocumentReader>] [-ReaderOptions <ReaderOptions>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- BatchOptions ReaderBatchOptions
- Optional maximum document count and degree of parallelism.
- Path String[]
- Paths to read.
- Reader OfficeDocumentReader
- Optional immutable reader with caller-configured processors.
- ReaderOptions ReaderOptions
- Optional source-reading limits and format behavior.
Outputs
OfficeIMO.Reader.OfficeDocumentReadResult