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

BillingExtensions.GetBillingAccountPaymentMethod 方法

定义

获取可用于计费帐户的付款方式。 仅协议类型为 Microsoft 客户协议 的计费帐户支持此操作。

  • 请求路径/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/paymentMethods/{paymentMethodName}
  • 操作IdPaymentMethods_GetByBillingAccount
public static Azure.Response<Azure.ResourceManager.Billing.BillingAccountPaymentMethodResource> GetBillingAccountPaymentMethod (this Azure.ResourceManager.Resources.TenantResource tenantResource, string billingAccountName, string paymentMethodName, System.Threading.CancellationToken cancellationToken = default);
static member GetBillingAccountPaymentMethod : Azure.ResourceManager.Resources.TenantResource * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Billing.BillingAccountPaymentMethodResource>
<Extension()>
Public Function GetBillingAccountPaymentMethod (tenantResource As TenantResource, billingAccountName As String, paymentMethodName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BillingAccountPaymentMethodResource)

参数

tenantResource
TenantResource

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

billingAccountName
String

唯一标识计费帐户的 ID。

paymentMethodName
String

唯一标识付款方式的 ID。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

billingAccountNamepaymentMethodName 是空字符串,预期为非空。

billingAccountNamepaymentMethodName 为 null。

适用于