Share via


EventPosition.FromSequenceNumber(Int64, Boolean) Method

Definition

Creates a position at the given sequence number.

public static Microsoft.ServiceBus.Messaging.EventPosition FromSequenceNumber (long sequenceNumber, bool inclusive = false);
static member FromSequenceNumber : int64 * bool -> Microsoft.ServiceBus.Messaging.EventPosition
Public Shared Function FromSequenceNumber (sequenceNumber As Long, Optional inclusive As Boolean = false) As EventPosition

Parameters

sequenceNumber
Int64

SequenceNumber

inclusive
Boolean

If true, the event at given sequence number is included; otherwise the next event is returned.

Returns

An EventPosition object.

Applies to