PhoneNumbersClient.GetAvailableAreaCodesGeographic Method

Definition

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

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