JobOperations.CopyNodeFileContentToStreamAsync メソッド

定義

コンピューティング ノード上の指定したタスクのディレクトリから、指定 Streamされた にファイルの内容をコピーします。

public System.Threading.Tasks.Task CopyNodeFileContentToStreamAsync (string jobId, string taskId, string filePath, System.IO.Stream stream, Microsoft.Azure.Batch.GetFileRequestByteRange byteRange = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.CopyNodeFileContentToStreamAsync : string * string * string * System.IO.Stream * Microsoft.Azure.Batch.GetFileRequestByteRange * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CopyNodeFileContentToStreamAsync (jobId As String, taskId As String, filePath As String, stream As Stream, Optional byteRange As GetFileRequestByteRange = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

パラメーター

jobId
String

タスクを含むジョブの ID です。

taskId
String

タスクの ID です。

filePath
String

取得するファイルのパス。

stream
Stream

ファイルの内容をコピーするストリーム。

byteRange
GetFileRequestByteRange

コピーするファイルのセクションを定義するバイト範囲。 省略すると、ファイル全体がダウンロードされます。

additionalBehaviors
IEnumerable<BatchClientBehavior>

の後の BatchClientBehavior Batch サービス要求に適用されるインスタンスの CustomBehaviorsコレクション。

cancellationToken
CancellationToken

CancellationToken非同期操作の有効期間を制御するための 。

戻り値

注釈

ファイルの取得操作は非同期的に実行されます。

適用対象