PhoneNumbersClient.GetAvailableLocalities 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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET