EventHubsModelFactory.PartitionContext Method

Definition

Initializes a new instance of the PartitionContext class.

public static Azure.Messaging.EventHubs.Consumer.PartitionContext PartitionContext (string fullyQualifiedNamespace, string eventHubName, string consumerGroup, string partitionId, Azure.Messaging.EventHubs.Consumer.LastEnqueuedEventProperties lastEnqueuedEventProperties = default);
static member PartitionContext : string * string * string * string * Azure.Messaging.EventHubs.Consumer.LastEnqueuedEventProperties -> Azure.Messaging.EventHubs.Consumer.PartitionContext
Public Shared Function PartitionContext (fullyQualifiedNamespace As String, eventHubName As String, consumerGroup As String, partitionId As String, Optional lastEnqueuedEventProperties As LastEnqueuedEventProperties = Nothing) As PartitionContext

Parameters

fullyQualifiedNamespace
String

The fully qualified Event Hubs namespace this context is associated with.

eventHubName
String

The name of the Event Hub partition this context is associated with.

consumerGroup
String

The name of the consumer group this context is associated with.

partitionId
String

The identifier of the Event Hub partition this context is associated with.

lastEnqueuedEventProperties
LastEnqueuedEventProperties

The set of properties to be returned when ReadLastEnqueuedEventProperties() is invoked.

Returns

Applies to