Condividi tramite


EventPosition.FromOffset(String, Boolean) Method

Definition

Corresponds to a specific offset in the partition event stream. By default, if an event is located at that offset, it will be read. Setting isInclusive to false will skip the event at that offset and begin reading at the next available event.

public static Azure.Messaging.EventHubs.Consumer.EventPosition FromOffset (string offsetString, bool isInclusive = true);
static member FromOffset : string * bool -> Azure.Messaging.EventHubs.Consumer.EventPosition
Public Shared Function FromOffset (offsetString As String, Optional isInclusive As Boolean = true) As EventPosition

Parameters

offsetString
String

The offset of an event with respect to its relative position in the partition.

isInclusive
Boolean

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

Returns

The specified position of an event in the partition.

Applies to