Freigeben über


BillingPaymentMethodLinkCollection.Get(String, CancellationToken) Methode

Definition

Ruft eine Zahlungsmethode ab, die mit einem Abrechnungsprofil verknüpft ist. Der Vorgang wird nur für Abrechnungskonten mit dem Vertragstyp Microsoft-Kundenvereinbarung unterstützt.

  • Request Path/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethodLinks/{paymentMethodName}
  • Vorgangs-IdPaymentMethods_GetByBillingProfile
public virtual Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodLinkResource> Get (string paymentMethodName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodLinkResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodLinkResource>
Public Overridable Function Get (paymentMethodName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BillingPaymentMethodLinkResource)

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: