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

SubscriptionsOperationsExtensions.ListByTopicAsync 方法

定义

列出指定主题下的所有订阅。 https://msdn.microsoft.com/en-us/library/azure/mt639400.aspx

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ServiceBus.Models.SBSubscription>> ListByTopicAsync(this Microsoft.Azure.Management.ServiceBus.ISubscriptionsOperations operations, string resourceGroupName, string namespaceName, string topicName, int? skip = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
static member ListByTopicAsync : Microsoft.Azure.Management.ServiceBus.ISubscriptionsOperations * string * string * string * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ServiceBus.Models.SBSubscription>>
<Extension()>
Public Function ListByTopicAsync (operations As ISubscriptionsOperations, resourceGroupName As String, namespaceName As String, topicName As String, Optional skip As Nullable(Of Integer) = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of SBSubscription))

参数

operations
ISubscriptionsOperations

此扩展方法的操作组。

resourceGroupName
String

Azure 订阅中的资源组的名称。

namespaceName
String

命名空间名称

topicName
String

主题名称。

skip
Nullable<Int32>

仅当上一个操作返回了部分结果时,才使用 Skip。 如果以前的响应包含 nextLink 元素,则 nextLink 元素的值将包含一个 skip 参数,该参数指定要用于后续调用的起点。

top
Nullable<Int32>

可用于将结果数限制为最近的 N usageDetail。

cancellationToken
CancellationToken

取消标记。

返回

适用于