Share via


PhoneNumbersClient.GetPurchasedPhoneNumberAsync Method

Definition

Gets the details of the given purchased phone number.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.PhoneNumbers.PurchasedPhoneNumber>> GetPurchasedPhoneNumberAsync (string phoneNumber, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPurchasedPhoneNumberAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.PhoneNumbers.PurchasedPhoneNumber>>
override this.GetPurchasedPhoneNumberAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.PhoneNumbers.PurchasedPhoneNumber>>
Public Overridable Function GetPurchasedPhoneNumberAsync (phoneNumber As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PurchasedPhoneNumber))

Parameters

phoneNumber
String

The acquired phone number whose details are to be fetched in E.164 format, e.g. +14255550123.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to