EventHubProducerClient.GetEventHubPropertiesAsync(CancellationToken) 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.
Retrieves information about the Event Hub that the connection is associated with, including the number of partitions present and their identifiers.
public virtual System.Threading.Tasks.Task<Azure.Messaging.EventHubs.EventHubProperties> GetEventHubPropertiesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetEventHubPropertiesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Messaging.EventHubs.EventHubProperties>
override this.GetEventHubPropertiesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Messaging.EventHubs.EventHubProperties>
Public Overridable Function GetEventHubPropertiesAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of EventHubProperties)
Parameters
- cancellationToken
- CancellationToken
An optional CancellationToken instance to signal the request to cancel the operation.
Returns
The set of information for the Event Hub that this client is associated with.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET