PhoneNumbersClient.GetAvailableAreaCodesGeographicAsync Method

Definition

Lists the available area codes within a given country and locality.

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

Parameters

twoLetterIsoCountryName
String

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

phoneNumberAssignmentType
PhoneNumberAssignmentType

The assignment type of the phone numbers to search for.

locality
String

The locality in which to list area codes. This is also known as the state or province.

administrativeDivision
String

Optionally, the administrative division of the locality. This is also known as the state or province.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to