Compartilhar via


ReservationOrderOperationsExtensions.BeginPurchaseAsync Método

Definição

Compra ReservationOrder

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

Parâmetros

operations
IReservationOrderOperations

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

reservationOrderId
String

ID do pedido da reserva

body
PurchaseRequest

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

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Comentários

Compre ReservationOrder e crie recursos sob o URI especificado.

Aplica-se a