CloudTask.CopyNodeFileContentToString 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 dans le répertoire de la tâche sur son nœud de calcul dans une chaîne.
public string CopyNodeFileContentToString (string filePath, System.Text.Encoding encoding = default, Microsoft.Azure.Batch.GetFileRequestByteRange byteRange = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.CopyNodeFileContentToString : string * System.Text.Encoding * Microsoft.Azure.Batch.GetFileRequestByteRange * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> string
Public Function CopyNodeFileContentToString (filePath As String, Optional encoding As Encoding = Nothing, Optional byteRange As GetFileRequestByteRange = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing) As String
Paramètres
- 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 après customBehaviors sur l’objet actuel.
Retours
Objet lié NodeFile .
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