PhoneNumbersClient.GetAvailableLocalitiesAsync 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.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
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