Partager via


PoolOperations.GetRDPFileAsync Méthode

Définition

Surcharges

GetRDPFileAsync(String, String, Stream, IEnumerable<BatchClientBehavior>, CancellationToken)

Obtient un fichier RDP (Remote Desktop Protocol) pour le nœud spécifié.

GetRDPFileAsync(String, String, String, IEnumerable<BatchClientBehavior>, CancellationToken)

Obtient un fichier de protocole Bureau à distance pour le nœud spécifié.

GetRDPFileAsync(String, String, Stream, IEnumerable<BatchClientBehavior>, CancellationToken)

Source:
PoolOperations.cs

Obtient un fichier RDP (Remote Desktop Protocol) pour le nœud spécifié.

public System.Threading.Tasks.Task GetRDPFileAsync (string poolId, string computeNodeId, System.IO.Stream rdpStream, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetRDPFileAsync : string * string * System.IO.Stream * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function GetRDPFileAsync (poolId As String, computeNodeId As String, rdpStream As Stream, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Paramètres

poolId
String

ID du pool qui contient le nœud de calcul.

computeNodeId
String

ID du nœud de calcul pour lequel obtenir un fichier Bureau à distance.

rdpStream
Stream

dans Stream lequel le contenu du fichier RDP sera écrit.

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

Task qui représente l'opération asynchrone.

Remarques

Cette méthode ne ferme pas le rdpStream flux et ne réinitialise pas la position après l’écriture. Il incombe à l’appelant de fermer le flux ou de réinitialiser la position si nécessaire.

L’opération obtenir un fichier RDP s’exécute de manière asynchrone.

Cette méthode ne peut être appelée que si le pool est créé avec une CloudServiceConfiguration propriété . Si cette méthode est appelée sur les pools créés avec VirtualMachineConfiguration, le service Batch retourne 409 (Conflit). Pour les pools avec VirtualMachineConfiguration propriété, la nouvelle méthode GetRemoteLoginSettings(String, String, IEnumerable<BatchClientBehavior>) doit être utilisée.

S’applique à

GetRDPFileAsync(String, String, String, IEnumerable<BatchClientBehavior>, CancellationToken)

Source:
PoolOperations.cs

Obtient un fichier de protocole Bureau à distance pour le nœud spécifié.

public System.Threading.Tasks.Task GetRDPFileAsync (string poolId, string computeNodeId, string rdpFileNameToCreate, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetRDPFileAsync : string * string * string * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function GetRDPFileAsync (poolId As String, computeNodeId As String, rdpFileNameToCreate As String, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Paramètres

poolId
String

ID du pool qui contient le nœud de calcul.

computeNodeId
String

ID du nœud de calcul pour lequel obtenir un fichier Bureau à distance.

rdpFileNameToCreate
String

Chemin d’accès au fichier au niveau duquel créer le fichier RDP.

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

Task qui représente l'opération asynchrone.

Remarques

Si le fichier spécifié par rdpFileNameToCreate existe déjà, il est remplacé.

L’opération obtenir un fichier RDP s’exécute de manière asynchrone.

Cette méthode ne peut être appelée que si le pool est créé avec une CloudServiceConfiguration propriété . Si cette méthode est appelée sur les pools créés avec VirtualMachineConfiguration, le service Batch retourne 409 (Conflit). Pour les pools avec VirtualMachineConfiguration propriété, la nouvelle méthode GetRemoteLoginSettingsAsync(String, String, IEnumerable<BatchClientBehavior>, CancellationToken) doit être utilisée.

S’applique à