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

NamespaceManager.CreateConsumerGroupIfNotExistsAsync 方法

定义

重载

CreateConsumerGroupIfNotExistsAsync(ConsumerGroupDescription)

CreateConsumerGroupIfNotExists(ConsumerGroupDescription) 的异步版本。

CreateConsumerGroupIfNotExistsAsync(String, String)

CreateConsumerGroupIfNotExists(String, String) 的异步版本。

CreateConsumerGroupIfNotExistsAsync(ConsumerGroupDescription)

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.ConsumerGroupDescription> CreateConsumerGroupIfNotExistsAsync (Microsoft.ServiceBus.Messaging.ConsumerGroupDescription description);
member this.CreateConsumerGroupIfNotExistsAsync : Microsoft.ServiceBus.Messaging.ConsumerGroupDescription -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.ConsumerGroupDescription>
Public Function CreateConsumerGroupIfNotExistsAsync (description As ConsumerGroupDescription) As Task(Of ConsumerGroupDescription)

参数

description
ConsumerGroupDescription

使用者组说明。

返回

用于完成异步操作的任务。

适用于

CreateConsumerGroupIfNotExistsAsync(String, String)

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.ConsumerGroupDescription> CreateConsumerGroupIfNotExistsAsync (string eventHubPath, string name);
member this.CreateConsumerGroupIfNotExistsAsync : string * string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.ConsumerGroupDescription>
Public Function CreateConsumerGroupIfNotExistsAsync (eventHubPath As String, name As String) As Task(Of ConsumerGroupDescription)

参数

eventHubPath
String

事件中心的路径。

name
String

使用者组的名称。

返回

用于完成异步操作的任务。

适用于