你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ReservationOrderResource.CalculateRefund 方法

定义

如果没有策略错误, Reservations 则计算返回的价格。

  • Request Path/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/calculateRefund
  • 操作IdCalculateRefund_Post
public virtual Azure.Response<Azure.ResourceManager.Reservations.Models.ReservationCalculateRefundResult> CalculateRefund (Azure.ResourceManager.Reservations.Models.ReservationCalculateRefundContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CalculateRefund : Azure.ResourceManager.Reservations.Models.ReservationCalculateRefundContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Reservations.Models.ReservationCalculateRefundResult>
override this.CalculateRefund : Azure.ResourceManager.Reservations.Models.ReservationCalculateRefundContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Reservations.Models.ReservationCalculateRefundResult>
Public Overridable Function CalculateRefund (content As ReservationCalculateRefundContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ReservationCalculateRefundResult)

参数

content
ReservationCalculateRefundContent

计算预留退款所需的信息。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于