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

ManagementClient.GetQueuesAsync(Int32, Int32, CancellationToken) 方法

定义

检索命名空间中存在的队列列表。

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.ServiceBus.Management.QueueDescription>> GetQueuesAsync (int count = 100, int skip = 0, System.Threading.CancellationToken cancellationToken = default);
abstract member GetQueuesAsync : int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.ServiceBus.Management.QueueDescription>>
override this.GetQueuesAsync : int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.ServiceBus.Management.QueueDescription>>
Public Overridable Function GetQueuesAsync (Optional count As Integer = 100, Optional skip As Integer = 0, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of QueueDescription))

参数

count
Int32

要提取的队列数。 默认为 100。 允许的最大值为 100。

skip
Int32

要跳过的队列数。 默认值为 0。 不能为负数。

cancellationToken
CancellationToken

返回

IList<T> 包含队列列表。

例外

如果参数在范围外。

操作超时。超时期限通过 ServiceBusConnection 类初始化。 如果超时值相对较低,可能需要增加超时值以避免此异常。

没有足够的权限来执行此操作。 应检查,以确保 具有ManagementClient执行此操作的正确TokenProvider凭据。

服务器繁忙。 在重试操作之前,应等待。

发生内部错误或意外异常。

注解

可以通过操作 countskip来模拟实体列表的页面。 skip (0) +count (100) 提供前 100 个实体。 跳过 (100) +count (100) 提供接下来的 100 个实体。

适用于