你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ComputeNode.GetRemoteLoginSettingsAsync 方法

定义

获取远程登录到计算节点所需的设置。

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

参数

additionalBehaviors
IEnumerable<BatchClientBehavior>

在 之后应用于 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors

cancellationToken
CancellationToken

一个 CancellationToken ,用于控制异步操作的生存期。

返回

表示异步操作的 Task

注解

获取远程登录设置操作异步运行。

仅当使用 属性创建 VirtualMachineConfiguration 池时,才能调用此方法。 如果在使用 CloudServiceConfiguration创建的池上调用此方法,Batch 服务将返回 409 (冲突) 。 对于具有 属性的 CloudServiceConfiguration 池,必须使用 GetRDPFileAsync/GetRDPFile 方法之一。

适用于