Share via


EventPosition.FromOffset Method

Definition

Overloads

FromOffset(Int64, Boolean)

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.

FromOffset(String, Boolean)

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.

FromOffset(Int64, Boolean)

Source:
EventPosition.cs

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 (long offset, bool isInclusive = true);
static member FromOffset : int64 * bool -> Azure.Messaging.EventHubs.Consumer.EventPosition
Public Shared Function FromOffset (offset As Long, Optional isInclusive As Boolean = true) As EventPosition

Parameters

offset
Int64

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

isInclusive
Boolean

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

Returns

The specified position of an event in the partition.

Applies to

FromOffset(String, Boolean)

Source:
EventPosition.cs

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 offset, bool isInclusive = true);
static member FromOffset : string * bool -> Azure.Messaging.EventHubs.Consumer.EventPosition
Public Shared Function FromOffset (offset As String, Optional isInclusive As Boolean = true) As EventPosition

Parameters

offset
String

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

isInclusive
Boolean

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

Returns

The specified position of an event in the partition.

Applies to