Share via


PhoneNumbersClient.GetAvailableLocalities Method

Definition

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

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