Partager via


BillingPaymentMethodCollection.GetAsync(String, CancellationToken) Méthode

Définition

Obtient un mode de paiement appartenant à l’appelant.

  • Chemin de la demande/providers/Microsoft.Billing/paymentMethods/{paymentMethodName}
  • IdPaymentMethods_GetByUser d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodResource>> GetAsync (string paymentMethodName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodResource>>
Public Overridable Function GetAsync (paymentMethodName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BillingPaymentMethodResource))

Paramètres

paymentMethodName
String

ID qui identifie de façon unique un mode de paiement.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

paymentMethodName est une chaîne vide et devait être non vide.

paymentMethodName a la valeur null.

S’applique à