ManagementClient.GetQueueRuntimeInfoAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the runtime information of a queue.
public virtual System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.Management.QueueRuntimeInfo> GetQueueRuntimeInfoAsync (string queuePath, System.Threading.CancellationToken cancellationToken = default);
abstract member GetQueueRuntimeInfoAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.Management.QueueRuntimeInfo>
override this.GetQueueRuntimeInfoAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.Management.QueueRuntimeInfo>
Public Overridable Function GetQueueRuntimeInfoAsync (queuePath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of QueueRuntimeInfo)
Parameters
- queuePath
- String
The path of the queue relative to service bus namespace.
- cancellationToken
- CancellationToken
Returns
QueueRuntimeInfo containing runtime information about the queue.
Exceptions
Thrown if queuePath
is null, white space empty or not in the right format.
The length of queue path is greater than 260.
The operation times out. The timeout period is initialized through the ServiceBusConnection class. You may need to increase the value of timeout to avoid this exception if the timeout value is relatively low.
Queue with this name does not exist.
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 an unexpected exception occured.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應