Aracılığıyla paylaş


ReservationOrderOperationsExtensions.CalculateAsync Method

Definition

Calculate price for a 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)

Parameters

operations
IReservationOrderOperations

The operations group for this extension method.

body
PurchaseRequest

Information needed for calculate or purchase reservation

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Calculate price for placing a ReservationOrder.

Applies to