你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
UsagesOperationsExtensions.GetAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取资源的当前使用情况。
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Quota.Models.CurrentUsagesBase> GetAsync (this Microsoft.Azure.Management.Quota.IUsagesOperations operations, string resourceName, string scope, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.Quota.IUsagesOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Quota.Models.CurrentUsagesBase>
<Extension()>
Public Function GetAsync (operations As IUsagesOperations, resourceName As String, scope As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CurrentUsagesBase)
参数
- operations
- IUsagesOperations
此扩展方法的操作组。
- resourceName
- String
给定资源提供程序的资源名称。 例如:
- Microsoft.Compute 的 SKU 名称
- SKU 或 TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses。
- scope
- String
目标 Azure 资源 URI。 例如,/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/
。
这是列出 GET 操作的目标 Azure 资源 URI。 {resourceName}
如果在 后面/quotas
添加 ,则它是特定资源的 GET 操作中的目标 Azure 资源 URI。
- cancellationToken
- CancellationToken
取消标记。