Share via


PhoneNumbersClient.GetAvailableLocalitiesAsync Method

Definition

Lists the available localities (e.g. city or town) in the given country from which to purchase phone numbers.

public virtual Azure.AsyncPageable<Azure.Communication.PhoneNumbers.PhoneNumberLocality> GetAvailableLocalitiesAsync (string twoLetterIsoCountryName, string administrativeDivision = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAvailableLocalitiesAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.PhoneNumbers.PhoneNumberLocality>
override this.GetAvailableLocalitiesAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.PhoneNumbers.PhoneNumberLocality>
Public Overridable Function GetAvailableLocalitiesAsync (twoLetterIsoCountryName As String, Optional administrativeDivision As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PhoneNumberLocality)

Parameters

twoLetterIsoCountryName
String

The ISO 3166-2 country code, e.g. US.

administrativeDivision
String

The administrative division within the country within which to list localities. This is also known as the state or province.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to