EventPosition.FromSequenceNumber(Int64, Boolean) Method

Definition

Corresponds to the event in the partition having a specified sequence number associated with it.

public static Azure.Messaging.EventHubs.Consumer.EventPosition FromSequenceNumber (long sequenceNumber, bool isInclusive = true);
static member FromSequenceNumber : int64 * bool -> Azure.Messaging.EventHubs.Consumer.EventPosition
Public Shared Function FromSequenceNumber (sequenceNumber As Long, Optional isInclusive As Boolean = true) As EventPosition

Parameters

sequenceNumber
Int64

The sequence number assigned to an event when it was enqueued in the partition.

isInclusive
Boolean

If true, the event with the sequenceNumber is included; otherwise the next event in sequence will be received.

Returns

EventPosition

The position of the specified event.

Applies to