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

TopicEventSubscriptionsOperationsExtensions.ListAsync 方法

定义

列出特定主题的所有事件订阅。

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

参数

operations
ITopicEventSubscriptionsOperations

此扩展方法的操作组。

resourceGroupName
String

用户订阅中的资源组的名称。

topicName
String

主题名称。

filter
String

用于使用 OData 语法筛选搜索结果的查询。 仅允许对“name”属性进行筛选,并且 OData 操作数有限。 这些操作包括:“contains”函数以及以下逻辑操作:not、或 eq (表示相等) ,ne (不等于) 。 不支持算术运算。 下面是一个有效的筛选器示例:$filter=包含 (namE、“PATTERN”) 和名称 ne“PATTERN-1”。 下面是无效的筛选器示例:$filter=location eq 'westus'。

top
Nullable<Int32>

列表操作每页返回的结果数。 top 参数的有效范围是 1 到 100。 如果未指定,则返回的默认结果数为每页 20 个项目。

cancellationToken
CancellationToken

取消标记。

返回

注解

列出已为特定主题创建的所有事件订阅。

适用于