NamespaceManager.CreateConsumerGroupIfNotExists Method

Definition

Overloads

CreateConsumerGroupIfNotExists(ConsumerGroupDescription)

Creates a consumer group if it does not already exist, using the specified ConsumerGroupDescription as metadata. If the group already exists, then return the stored ConsumerGroupDescription.

CreateConsumerGroupIfNotExists(String, String)

Creates a consumer group if it does not already exist, using the specified Event Hubs path and group name. If the group already exists, then return the stored ConsumerGroupDescription.

CreateConsumerGroupIfNotExists(ConsumerGroupDescription)

Creates a consumer group if it does not already exist, using the specified ConsumerGroupDescription as metadata. If the group already exists, then return the stored 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

Parameters

Returns

Returns the newly-created ConsumerGroupDescription. If the consumer group already exists, returns the existing ConsumerGroupDescription.

Applies to

CreateConsumerGroupIfNotExists(String, String)

Creates a consumer group if it does not already exist, using the specified Event Hubs path and group name. If the group already exists, then return the stored 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

Parameters

eventHubPath
String

Path to the Event Hub.

name
String

The name of the consumer group to create.

Returns

Returns the newly-created ConsumerGroupDescription. If the consumer group already exists, returns the existing ConsumerGroupDescription.

Applies to