你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
NamespaceManager.CreateConsumerGroupIfNotExists 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateConsumerGroupIfNotExists(ConsumerGroupDescription) |
使用指定的 ConsumerGroupDescription 作为元数据创建使用者组(如果尚不存在)。 如果组已存在,则返回存储 ConsumerGroupDescription的 。 |
CreateConsumerGroupIfNotExists(String, String) |
使用指定的事件中心路径和组名称创建使用者组(如果尚不存在)。 如果组已存在,则返回存储 ConsumerGroupDescription的 。 |
CreateConsumerGroupIfNotExists(ConsumerGroupDescription)
使用指定的 ConsumerGroupDescription 作为元数据创建使用者组(如果尚不存在)。 如果组已存在,则返回存储 ConsumerGroupDescription的 。
public Microsoft.ServiceBus.Messaging.ConsumerGroupDescription CreateConsumerGroupIfNotExists(Microsoft.ServiceBus.Messaging.ConsumerGroupDescription description);
member this.CreateConsumerGroupIfNotExists : Microsoft.ServiceBus.Messaging.ConsumerGroupDescription -> Microsoft.ServiceBus.Messaging.ConsumerGroupDescription
Public Function CreateConsumerGroupIfNotExists (description As ConsumerGroupDescription) As ConsumerGroupDescription
参数
- description
- ConsumerGroupDescription
返回
返回新创建的 ConsumerGroupDescription。 如果使用者组已存在, 将返回现有的 ConsumerGroupDescription。
适用于
CreateConsumerGroupIfNotExists(String, String)
使用指定的事件中心路径和组名称创建使用者组(如果尚不存在)。 如果组已存在,则返回存储 ConsumerGroupDescription的 。
public Microsoft.ServiceBus.Messaging.ConsumerGroupDescription CreateConsumerGroupIfNotExists(string eventHubPath, string name);
member this.CreateConsumerGroupIfNotExists : string * string -> Microsoft.ServiceBus.Messaging.ConsumerGroupDescription
Public Function CreateConsumerGroupIfNotExists (eventHubPath As String, name As String) As ConsumerGroupDescription
参数
- eventHubPath
- String
事件中心的路径。
- name
- String
要创建的使用者组的名称。
返回
返回新创建的 ConsumerGroupDescription。 如果使用者组已存在, 将返回现有的 ConsumerGroupDescription。