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

PoliciesOperationsExtensions.GetByCustomerAsync 方法

定义

列出客户的策略。 只有协议类型为 Microsoft 合作伙伴协议 的计费帐户才支持此操作。 https://docs.microsoft.com/en-us/rest/api/billing/

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Billing.Models.CustomerPolicy> GetByCustomerAsync (this Microsoft.Azure.Management.Billing.IPoliciesOperations operations, string billingAccountName, string customerName, System.Threading.CancellationToken cancellationToken = default);
static member GetByCustomerAsync : Microsoft.Azure.Management.Billing.IPoliciesOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Billing.Models.CustomerPolicy>
<Extension()>
Public Function GetByCustomerAsync (operations As IPoliciesOperations, billingAccountName As String, customerName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CustomerPolicy)

参数

operations
IPoliciesOperations

此扩展方法的操作组。

billingAccountName
String

唯一标识计费帐户的 ID。

customerName
String

唯一标识客户的 ID。

cancellationToken
CancellationToken

取消标记。

返回

适用于