共用方式為


BillingAccountPaymentMethodCollection.GetAllAsync(CancellationToken) Method

Definition

Lists the payment methods available for a billing account. Along with the payment methods owned by the caller, these payment methods can be attached to a billing profile to make payments. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/paymentMethods
  • Operation Id: PaymentMethods_ListByBillingAccount
  • Default Api Version: 2024-04-01
  • Resource: BillingAccountPaymentMethodResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Billing.BillingAccountPaymentMethodResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Billing.BillingAccountPaymentMethodResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Billing.BillingAccountPaymentMethodResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of BillingAccountPaymentMethodResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of BillingAccountPaymentMethodResource that may take multiple service requests to iterate over.

Applies to