共用方式為


ManagementClient.QueueExistsAsync(String, CancellationToken) Method

Definition

Checks whether a given queue exists or not.

public virtual System.Threading.Tasks.Task<bool> QueueExistsAsync (string queuePath, System.Threading.CancellationToken cancellationToken = default);
abstract member QueueExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.QueueExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function QueueExistsAsync (queuePath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

queuePath
String

Path of the queue entity to check.

cancellationToken
CancellationToken

Returns

True if queue exists, false otherwise.

Exceptions

Queue path provided is not valid.

The operation times out.

No sufficient permission to perform this operation. You should check to ensure that your ManagementClient has the correct TokenProvider credentials to perform this operation.

The server is busy. You should wait before you retry the operation.

An internal error or unexpected exception occurs.

Applies to