Freigeben über


BillingPaymentMethodCollection.Get(String, CancellationToken) Methode

Definition

Ruft eine Zahlungsmethode ab, die dem Aufrufer gehört.

  • Anforderungspfad/providers/Microsoft.Billing/paymentMethods/{paymentMethodName}
  • Vorgangs-IdPaymentMethods_GetByUser
public virtual Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodResource> Get (string paymentMethodName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodResource>
Public Overridable Function Get (paymentMethodName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BillingPaymentMethodResource)

Parameter

paymentMethodName
String

Die ID, die eine Zahlungsmethode eindeutig identifiziert.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

paymentMethodName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

paymentMethodName ist NULL.

Gilt für: