Udostępnij za pośrednictwem


QueueClient.DeleteIfExists(CancellationToken) Method

Definition

The DeleteIfExists(CancellationToken) operation deletes the specified queue if it exists.

For more information, see Delete Queue.

public virtual Azure.Response<bool> DeleteIfExists (System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteIfExists : System.Threading.CancellationToken -> Azure.Response<bool>
override this.DeleteIfExists : System.Threading.CancellationToken -> Azure.Response<bool>
Public Overridable Function DeleteIfExists (Optional cancellationToken As CancellationToken = Nothing) As Response(Of Boolean)

Parameters

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response Returns true if queue exists and was deleted, return false otherwise.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to