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.
Overloads
| Name | Description |
|---|---|
| GetAvailableLocalitiesAsync(String, String, CancellationToken) |
Lists the available localities (e.g. city or town) in the given country from which to purchase phone numbers. |
| GetAvailableLocalitiesAsync(String, PhoneNumberType, String, CancellationToken) |
Lists the available localities (e.g. city or town) in the given country from which to purchase phone numbers. |
GetAvailableLocalitiesAsync(String, String, CancellationToken)
- Source:
- PhoneNumbersClient.cs
- Source:
- PhoneNumbersClient.cs
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
GetAvailableLocalitiesAsync(String, PhoneNumberType, String, CancellationToken)
- Source:
- PhoneNumbersClient.cs
- Source:
- PhoneNumbersClient.cs
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, Azure.Communication.PhoneNumbers.PhoneNumberType phoneNumberType, string administrativeDivision = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAvailableLocalitiesAsync : string * Azure.Communication.PhoneNumbers.PhoneNumberType * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.PhoneNumbers.PhoneNumberLocality>
override this.GetAvailableLocalitiesAsync : string * Azure.Communication.PhoneNumbers.PhoneNumberType * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.PhoneNumbers.PhoneNumberLocality>
Public Overridable Function GetAvailableLocalitiesAsync (twoLetterIsoCountryName As String, phoneNumberType As PhoneNumberType, 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.
- phoneNumberType
- PhoneNumberType
Filter by numberType, e.g. Geographic, TollFree, Mobile.
- 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.