Partilhar via


ReservationOrderResource.CalculateRefundAsync Método

Definição

Calcule o preço para retornar Reservations se não houver erros de política.

  • Caminho da Solicitação/provedores/Microsoft.Capacity/reservationOrders/{reservationOrderId}/calculateRefund
  • IdCalculateRefund_Post de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Reservations.Models.ReservationCalculateRefundResult>> CalculateRefundAsync (Azure.ResourceManager.Reservations.Models.ReservationCalculateRefundContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CalculateRefundAsync : Azure.ResourceManager.Reservations.Models.ReservationCalculateRefundContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Reservations.Models.ReservationCalculateRefundResult>>
override this.CalculateRefundAsync : Azure.ResourceManager.Reservations.Models.ReservationCalculateRefundContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Reservations.Models.ReservationCalculateRefundResult>>
Public Overridable Function CalculateRefundAsync (content As ReservationCalculateRefundContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ReservationCalculateRefundResult))

Parâmetros

content
ReservationCalculateRefundContent

Informações necessárias para calcular o reembolso de uma reserva.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a