Freigeben über


EventHubBufferedProducerClient.ListPartitionIdsAsync Methode

Definition

Fragt die Bezeichner der Event Hub-Partitionen ab.

protected virtual System.Threading.Tasks.Task<string[]> ListPartitionIdsAsync (Azure.Messaging.EventHubs.Producer.EventHubProducerClient producer, System.Threading.CancellationToken cancellationToken);
abstract member ListPartitionIdsAsync : Azure.Messaging.EventHubs.Producer.EventHubProducerClient * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string[]>
override this.ListPartitionIdsAsync : Azure.Messaging.EventHubs.Producer.EventHubProducerClient * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string[]>
Protected Overridable Function ListPartitionIdsAsync (producer As EventHubProducerClient, cancellationToken As CancellationToken) As Task(Of String())

Parameter

producer
EventHubProducerClient

Der Producerclient instance für Abfragen verwendet werden.

cancellationToken
CancellationToken

Ein CancellationToken instance, um die Anforderung zum Abbrechen der Abfrage zu signalisieren.

Gibt zurück

Der Satz von Bezeichnern für die Event Hub-Partitionen.

Gilt für: