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

ComputeNode.GetRemoteLoginSettings 方法

定义

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

public Microsoft.Azure.Batch.RemoteLoginSettings GetRemoteLoginSettings (System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.GetRemoteLoginSettings : seq<Microsoft.Azure.Batch.BatchClientBehavior> -> Microsoft.Azure.Batch.RemoteLoginSettings
Public Function GetRemoteLoginSettings (Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing) As RemoteLoginSettings

参数

additionalBehaviors
IEnumerable<BatchClientBehavior>

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

返回

注解

这是一个阻止操作。 有关非阻塞等效项,请参阅 GetRemoteLoginSettingsAsync(IEnumerable<BatchClientBehavior>, CancellationToken)

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

适用于