Share via


PhoneNumbersClient.StartReleasePhoneNumberAsync Method

Definition

Releases an purchased phone number.

public virtual System.Threading.Tasks.Task<Azure.Communication.PhoneNumbers.ReleasePhoneNumberOperation> StartReleasePhoneNumberAsync (string phoneNumber, System.Threading.CancellationToken cancellationToken = default);
abstract member StartReleasePhoneNumberAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Communication.PhoneNumbers.ReleasePhoneNumberOperation>
override this.StartReleasePhoneNumberAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Communication.PhoneNumbers.ReleasePhoneNumberOperation>
Public Overridable Function StartReleasePhoneNumberAsync (phoneNumber As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ReleasePhoneNumberOperation)

Parameters

phoneNumber
String

Phone number to be released, e.g. +14255550123.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

phoneNumber is null.

Applies to