Dela via


PhoneNumbersClient.GetPurchasedPhoneNumber(String, CancellationToken) Method

Definition

Gets the details of the given purchased phone number.

public virtual Azure.Response<Azure.Communication.PhoneNumbers.PurchasedPhoneNumber> GetPurchasedPhoneNumber (string phoneNumber, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPurchasedPhoneNumber : string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.PhoneNumbers.PurchasedPhoneNumber>
override this.GetPurchasedPhoneNumber : string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.PhoneNumbers.PurchasedPhoneNumber>
Public Overridable Function GetPurchasedPhoneNumber (phoneNumber As String, Optional cancellationToken As CancellationToken = Nothing) As 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