Partager via


ReservationOrderResource.CalculateRefundAsync Méthode

Définition

Calculez le prix du retour Reservations s’il n’y a pas d’erreurs de stratégie.

  • Chemin de la requête/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/calculateRefund
  • IdCalculateRefund_Post d’opération
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))

Paramètres

content
ReservationCalculateRefundContent

Informations nécessaires pour calculer le remboursement d’une réservation.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

content a la valeur null.

S’applique à