IngestionPipeline<T>.ProcessAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| ProcessAsync(IEnumerable<FileInfo>, CancellationToken) |
指定したファイルを処理します。 |
| ProcessAsync(DirectoryInfo, String, SearchOption, CancellationToken) |
指定された検索パターンとオプションに一致する指定したディレクトリ内のすべてのファイルを処理します。 |
ProcessAsync(IEnumerable<FileInfo>, CancellationToken)
指定したファイルを処理します。
public System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.DataIngestion.IngestionResult> ProcessAsync(System.Collections.Generic.IEnumerable<System.IO.FileInfo> files, System.Threading.CancellationToken cancellationToken = default);
member this.ProcessAsync : seq<System.IO.FileInfo> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.DataIngestion.IngestionResult>
Public Function ProcessAsync (files As IEnumerable(Of FileInfo), Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of IngestionResult)
パラメーター
- files
- IEnumerable<FileInfo>
処理するファイルのコレクション。
- cancellationToken
- CancellationToken
操作のキャンセル トークン。
返品
非同期操作を表すタスク。
適用対象
ProcessAsync(DirectoryInfo, String, SearchOption, CancellationToken)
指定された検索パターンとオプションに一致する指定したディレクトリ内のすべてのファイルを処理します。
public System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.DataIngestion.IngestionResult> ProcessAsync(System.IO.DirectoryInfo directory, string searchPattern = "*.*", System.IO.SearchOption searchOption = System.IO.SearchOption.TopDirectoryOnly, System.Threading.CancellationToken cancellationToken = default);
member this.ProcessAsync : System.IO.DirectoryInfo * string * System.IO.SearchOption * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.DataIngestion.IngestionResult>
Public Function ProcessAsync (directory As DirectoryInfo, Optional searchPattern As String = "*.*", Optional searchOption As SearchOption = System.IO.SearchOption.TopDirectoryOnly, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of IngestionResult)
パラメーター
- directory
- DirectoryInfo
処理するディレクトリ。
- searchPattern
- String
ファイル選択の検索パターン。
- searchOption
- SearchOption
ディレクトリ トラバーサルの検索オプション。
- cancellationToken
- CancellationToken
操作のキャンセル トークン。
返品
非同期操作を表すタスク。