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

PoolOperations.ListPoolNodeCounts 方法

定义

列出每个状态的节点数,按池分组。

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

参数

detailLevel
DetailLevel

一个 DetailLevel ,用于筛选列表并控制从服务检索哪些属性。

additionalBehaviors
IEnumerable<BatchClientBehavior>

在 和 detailLevel之后应用于 Batch 服务请求的CustomBehaviors实例集合BatchClientBehavior

返回

可用于 IPagedEnumerable<T> 异步或同步枚举池节点计数详细信息的 。

注解

此方法将立即返回;仅当枚举集合时,才会从 Batch 服务检索池计数。 检索是非原子的;池计数在集合枚举期间在页中检索。

适用于