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

SubscriptionExtensions.GetBillingAccountPolicy 方法

定义

获取计费帐户策略。

  • 请求路径/提供程序/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Subscription/policies/default
  • 操作IdBillingAccount_GetPolicy
public static Azure.Response<Azure.ResourceManager.Subscription.BillingAccountPolicyResource> GetBillingAccountPolicy (this Azure.ResourceManager.Resources.TenantResource tenantResource, string billingAccountId, System.Threading.CancellationToken cancellationToken = default);
static member GetBillingAccountPolicy : Azure.ResourceManager.Resources.TenantResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Subscription.BillingAccountPolicyResource>
<Extension()>
Public Function GetBillingAccountPolicy (tenantResource As TenantResource, billingAccountId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BillingAccountPolicyResource)

参数

tenantResource
TenantResource

方法 TenantResource 将对其执行的实例。

billingAccountId
String

计费帐户 ID。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

billingAccountId 是一个空字符串,预期为非空。

billingAccountId 为 null。

适用于