PoolOperations.CopyNodeFileContentToStream Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Copie le contenu d’un fichier du nœud spécifié vers le donné Stream.
public void CopyNodeFileContentToStream (string poolId, string computeNodeId, string filePath, System.IO.Stream stream, Microsoft.Azure.Batch.GetFileRequestByteRange byteRange = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.CopyNodeFileContentToStream : string * string * string * System.IO.Stream * Microsoft.Azure.Batch.GetFileRequestByteRange * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub CopyNodeFileContentToStream (poolId As String, computeNodeId As String, filePath As String, stream As Stream, Optional byteRange As GetFileRequestByteRange = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)
Paramètres
- poolId
- String
ID du pool qui contient le nœud de calcul.
- computeNodeId
- String
ID du nœud de calcul.
- 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 à la demande de service Batch après le CustomBehaviors.
Remarques
Il s’agit d’une opération bloquante. Pour un équivalent non bloquant, consultez CopyNodeFileContentToStreamAsync(String, String, String, Stream, GetFileRequestByteRange, IEnumerable<BatchClientBehavior>, CancellationToken).
S’applique à
Azure SDK for .NET
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour