共用方式為


BillingAccountResource.CancelPaymentTermsAsync Method

Definition

Cancels all the payment terms on billing account that falls after the cancellation date in the request. Currently, cancel payment terms is only served by admin actions and is not a self-serve action.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/cancelPaymentTerms
  • Operation Id: BillingAccounts_CancelPaymentTerms
  • Default Api Version: 2024-04-01
  • Resource: BillingAccountResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingAccountResource>> CancelPaymentTermsAsync (Azure.WaitUntil waitUntil, DateTimeOffset dateTime, System.Threading.CancellationToken cancellationToken = default);
abstract member CancelPaymentTermsAsync : Azure.WaitUntil * DateTimeOffset * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingAccountResource>>
override this.CancelPaymentTermsAsync : Azure.WaitUntil * DateTimeOffset * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingAccountResource>>
Public Overridable Function CancelPaymentTermsAsync (waitUntil As WaitUntil, dateTime As DateTimeOffset, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of BillingAccountResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

dateTime
DateTimeOffset

Date after which any payment terms that needs to be cancelled.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to