EventPosition Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The position of events in an Event Hub partition, typically used in the creation of an EventHubConsumerClient.
public struct EventPosition : IEquatable<Azure.Messaging.EventHubs.Consumer.EventPosition>
type EventPosition = struct
Public Structure EventPosition
Implements IEquatable(Of EventPosition)
- Inheritance
-
System.ValueTypeEventPosition
- Implements
-
System.IEquatable<EventPosition>
Properties
Earliest |
Corresponds to the location of the first event present in the partition. Use this position to begin receiving from the first event that was enqueued in the partition which has not expired due to the retention policy. |
Latest |
Corresponds to the end of the partition, where no more events are currently enqueued. Use this position to begin receiving from the next event to be enqueued in the partition after an EventHubConsumerClient is created with this position. |
Methods
Equals(EventPosition) |
Determines whether the specified EventPosition is equal to this instance. |
FromEnqueuedTime(DateTimeOffset) |
Corresponds to a specific date and time within the partition to begin seeking an event; the event enqueued after the
requested |
FromOffset(Int64, Boolean) |
Corresponds to the event in the partition at the provided offset, inclusive of that event. |
FromSequenceNumber(Int64, Boolean) |
Corresponds to the event in the partition having a specified sequence number associated with it. |
Operators
Equality(EventPosition, EventPosition) |
Determines whether the specified EventPosition instances are equal to each other. |
Inequality(EventPosition, EventPosition) |
Determines whether the specified EventPosition instances are not equal to each other. |