PhoneNumbersClient.BrowseAvailableNumbersAsync 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.
Browses for available phone numbers to purchase. The response will be a randomized list of phone numbers available to purchase matching the browsing criteria. Since the results are randomized, repeating the same request will not guarantee the same results.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.PhoneNumbers.PhoneNumbersBrowseResult>> BrowseAvailableNumbersAsync(Azure.Communication.PhoneNumbers.PhoneNumbersBrowseOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member BrowseAvailableNumbersAsync : Azure.Communication.PhoneNumbers.PhoneNumbersBrowseOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.PhoneNumbers.PhoneNumbersBrowseResult>>
override this.BrowseAvailableNumbersAsync : Azure.Communication.PhoneNumbers.PhoneNumbersBrowseOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.PhoneNumbers.PhoneNumbersBrowseResult>>
Public Overridable Function BrowseAvailableNumbersAsync (options As PhoneNumbersBrowseOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PhoneNumbersBrowseResult))
Parameters
- options
- PhoneNumbersBrowseOptions
An object including the parameters to browse phone numbers by.
- cancellationToken
- CancellationToken
The cancellation token to use.