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

ConsumerGroupsOperationsExtensions.ListByEventHubAsync 方法

定义

获取命名空间中的所有使用者组。 如果命名空间中不存在使用者组,则返回空源。

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.EventHub.Fluent.Models.ConsumerGroupInner>> ListByEventHubAsync (this Microsoft.Azure.Management.EventHub.Fluent.IConsumerGroupsOperations operations, string resourceGroupName, string namespaceName, string eventHubName, int? skip = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
static member ListByEventHubAsync : Microsoft.Azure.Management.EventHub.Fluent.IConsumerGroupsOperations * string * string * string * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.EventHub.Fluent.Models.ConsumerGroupInner>>
<Extension()>
Public Function ListByEventHubAsync (operations As IConsumerGroupsOperations, resourceGroupName As String, namespaceName As String, eventHubName 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 ConsumerGroupInner))

参数

operations
IConsumerGroupsOperations

此扩展方法的操作组。

resourceGroupName
String

Azure 订阅中资源组的名称。

namespaceName
String

命名空间名称

eventHubName
String

事件中心名称

skip
Nullable<Int32>

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

top
Nullable<Int32>

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

cancellationToken
CancellationToken

取消标记。

返回

适用于