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

ComputeNodeOperationsExtensions.GetAsync 方法

定义

获取有关指定计算节点的信息。

public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.ComputeNode> GetAsync (this Microsoft.Azure.Batch.Protocol.IComputeNodeOperations operations, string poolId, string nodeId, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeGetOptions computeNodeGetOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Batch.Protocol.IComputeNodeOperations * string * string * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeGetOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.ComputeNode>
<Extension()>
Public Function GetAsync (operations As IComputeNodeOperations, poolId As String, nodeId As String, Optional computeNodeGetOptions As ComputeNodeGetOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ComputeNode)

参数

operations
IComputeNodeOperations

此扩展方法的操作组。

poolId
String

包含计算节点的池的 ID。

nodeId
String

要获取相关信息的计算节点的 ID。

computeNodeGetOptions
ComputeNodeGetOptions

操作的其他参数

cancellationToken
CancellationToken

取消标记。

返回

适用于