你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PhoneNumbersClient.DeleteReservationAsync(Guid, CancellationToken) Method

Definition

Deletes the reservation with the given ID. Any phone number in the reservation will be released and made available for others to purchase. Only active reservations can be deleted.

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteReservationAsync(Guid reservationId, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteReservationAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteReservationAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteReservationAsync (reservationId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

reservationId
Guid

The ID of an existing reservation to delete.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to