JobOperations.CopyNodeFileContentToStringAsync 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.
Lit le contenu d’un fichier du répertoire de la tâche spécifiée sur son nœud de calcul dans une chaîne.
public System.Threading.Tasks.Task<string> CopyNodeFileContentToStringAsync (string jobId, string taskId, string filePath, System.Text.Encoding encoding = default, Microsoft.Azure.Batch.GetFileRequestByteRange byteRange = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.CopyNodeFileContentToStringAsync : string * string * string * System.Text.Encoding * Microsoft.Azure.Batch.GetFileRequestByteRange * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function CopyNodeFileContentToStringAsync (jobId As String, taskId As String, filePath As String, Optional encoding As Encoding = Nothing, Optional byteRange As GetFileRequestByteRange = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Paramètres
- jobId
- String
ID du travail contenant la tâche.
- taskId
- String
ID de la tâche.
- filePath
- String
Chemin d’accès du fichier à récupérer.
- encoding
- Encoding
Encodage à utiliser. Si aucune valeur ou null n’est spécifiée, UTF8 est utilisé.
- 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.
- cancellationToken
- CancellationToken
CancellationToken pour contrôler la durée de vie de l’opération asynchrone.
Retours
Contenu du fichier, sous forme de chaîne
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