PhoneNumbersClient.GetReservationAsync(Guid, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.