PhoneNumbersClient.StartReleasePhoneNumber(String, CancellationToken) Method

Definition

Releases an purchased phone number.

public virtual Azure.Communication.PhoneNumbers.ReleasePhoneNumberOperation StartReleasePhoneNumber (string phoneNumber, System.Threading.CancellationToken cancellationToken = default);
abstract member StartReleasePhoneNumber : string * System.Threading.CancellationToken -> Azure.Communication.PhoneNumbers.ReleasePhoneNumberOperation
override this.StartReleasePhoneNumber : string * System.Threading.CancellationToken -> Azure.Communication.PhoneNumbers.ReleasePhoneNumberOperation
Public Overridable Function StartReleasePhoneNumber (phoneNumber As String, Optional cancellationToken As CancellationToken = Nothing) As 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