Sdílet prostřednictvím


NamespaceManager.CreateConsumerGroupIfNotExistsAsync Method

Definition

Overloads

CreateConsumerGroupIfNotExistsAsync(ConsumerGroupDescription)

Asynchronous version of CreateConsumerGroupIfNotExists(ConsumerGroupDescription).

CreateConsumerGroupIfNotExistsAsync(String, String)

Asynchronous version of 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)

Parameters

description
ConsumerGroupDescription

The consumer group description.

Returns

The task that completes the asynchronous operation.

Applies to

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)

Parameters

eventHubPath
String

The path to the Event Hub.

name
String

The name of the consumer group.

Returns

The task that completes the asynchronous operation.

Applies to