Udostępnij za pośrednictwem


EventPosition.FromSequenceNumber(Int64, Boolean) Method

Definition

Corresponds to an event with the specified sequence number in the partition. By default, the event with this sequenceNumber will be read. Setting isInclusive to false will skip the event with that sequence number and begin reading at the next available event.

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

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

Returns

The specified position of an event in the partition.

Applies to