Share via


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

CloudPool.GetComputeNode 方法

定义

从此池中获取指定的计算节点。

public Microsoft.Azure.Batch.ComputeNode GetComputeNode (string computeNodeId, Microsoft.Azure.Batch.DetailLevel detailLevel = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.GetComputeNode : string * Microsoft.Azure.Batch.DetailLevel * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> Microsoft.Azure.Batch.ComputeNode
Public Function GetComputeNode (computeNodeId As String, Optional detailLevel As DetailLevel = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing) As ComputeNode

参数

computeNodeId
String

要从池中获取的计算节点的 ID。

detailLevel
DetailLevel

一个 DetailLevel ,用于控制从服务检索哪些属性。

additionalBehaviors
IEnumerable<BatchClientBehavior>

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

返回

一个 ComputeNode ,包含有关指定计算节点的信息。

注解

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

适用于