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

UsagesOperationsExtensions.ListAsync 方法

定义

获取指定范围的所有资源的当前使用情况列表。

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Quota.Models.CurrentUsagesBase>> ListAsync (this Microsoft.Azure.Management.Quota.IUsagesOperations operations, string scope, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.Quota.IUsagesOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Quota.Models.CurrentUsagesBase>>
<Extension()>
Public Function ListAsync (operations As IUsagesOperations, scope As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of CurrentUsagesBase))

参数

operations
IUsagesOperations

此扩展方法的操作组。

scope
String

目标 Azure 资源 URI。 例如,/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/。 这是列出 GET 操作的目标 Azure 资源 URI。 如果在 之后/quotas添加 ,{resourceName}则它是特定资源 GET 操作中的目标 Azure 资源 URI。

cancellationToken
CancellationToken

取消标记。

返回

适用于