Partilhar via


BillingExtensions.GetBillingPaymentMethodAsync Método

Definição

Obtém uma forma de pagamento pertencente ao chamador.

  • Caminho da Solicitação/provedores/Microsoft.Billing/paymentMethods/{paymentMethodName}
  • Operação IdPaymentMethods_GetByUser
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodResource>> GetBillingPaymentMethodAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, string paymentMethodName, System.Threading.CancellationToken cancellationToken = default);
static member GetBillingPaymentMethodAsync : Azure.ResourceManager.Resources.TenantResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodResource>>
<Extension()>
Public Function GetBillingPaymentMethodAsync (tenantResource As TenantResource, paymentMethodName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BillingPaymentMethodResource))

Parâmetros

tenantResource
TenantResource

A TenantResource instância em que o método será executado.

paymentMethodName
String

A ID que identifica exclusivamente uma forma de pagamento.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

paymentMethodName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

paymentMethodName é nulo.

Aplica-se a