NamespaceManager.CreateConsumerGroupIfNotExists Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- description
- ConsumerGroupDescription
A ConsumerGroupDescription object.
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
Azure SDK for .NET