PhoneNumbersClient.GetReservationAsync(Guid, CancellationToken) Method

Definition

Retrieves the reservation with the given ID, including all of the phone numbers associated with it.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.PhoneNumbers.PhoneNumbersReservation>> GetReservationAsync(Guid id, System.Threading.CancellationToken cancellationToken = default);
abstract member GetReservationAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.PhoneNumbers.PhoneNumbersReservation>>
override this.GetReservationAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.PhoneNumbers.PhoneNumbersReservation>>
Public Overridable Function GetReservationAsync (id As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PhoneNumbersReservation))

Parameters

id
Guid

The id of the reservation to retrieve.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to