Freigeben über


PhoneNumbersClient.GetAvailableAreaCodesMobileAsync Method

Definition

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

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

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to