Partager via


ComputeNode.CopyNodeFileContentToStreamAsync Méthode

Définition

Copie le contenu d’un fichier du nœud vers le donné Stream.

public System.Threading.Tasks.Task CopyNodeFileContentToStreamAsync (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 * System.IO.Stream * Microsoft.Azure.Batch.GetFileRequestByteRange * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CopyNodeFileContentToStreamAsync (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

Paramètres

filePath
String

Chemin d’accès du fichier à récupérer.

stream
Stream

Flux vers lequel copier le contenu du fichier.

byteRange
GetFileRequestByteRange

Plage d’octets définissant la section du fichier à copier. En cas d’omission, l’intégralité du fichier est téléchargée.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Collection d’instances BatchClientBehavior appliquées après customBehaviors sur l’objet actuel.

cancellationToken
CancellationToken

CancellationToken pour contrôler la durée de vie de l’opération asynchrone.

Retours

Objet Task qui représente l’opération asynchrone.

S’applique à