Compartilhar via


ReservationOrderOperationsExtensions.CalculateAsync Método

Definição

Calcule o preço de um ReservationOrder.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Reservations.Models.CalculatePriceResponse> CalculateAsync (this Microsoft.Azure.Management.Reservations.IReservationOrderOperations operations, Microsoft.Azure.Management.Reservations.Models.PurchaseRequest body, System.Threading.CancellationToken cancellationToken = default);
static member CalculateAsync : Microsoft.Azure.Management.Reservations.IReservationOrderOperations * Microsoft.Azure.Management.Reservations.Models.PurchaseRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Reservations.Models.CalculatePriceResponse>
<Extension()>
Public Function CalculateAsync (operations As IReservationOrderOperations, body As PurchaseRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CalculatePriceResponse)

Parâmetros

operations
IReservationOrderOperations

O grupo de operações para esse método de extensão.

body
PurchaseRequest

Informações necessárias para calcular ou comprar reserva

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Comentários

Calcule o preço para colocar um ReservationOrder.

Aplica-se a