你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventProcessorOptions.DefaultStartingPosition Property

Definition

The position within a partition where the event processor should begin reading events when no checkpoint can be found.

public Azure.Messaging.EventHubs.Consumer.EventPosition DefaultStartingPosition { get; set; }
member this.DefaultStartingPosition : Azure.Messaging.EventHubs.Consumer.EventPosition with get, set
Public Property DefaultStartingPosition As EventPosition

Property Value

Remarks

In the event that a custom starting point is desired for a single partition, or each partition should start at a unique place, it is recommended that those values be returned by the Azure.Messaging.EventHubs.Primitives.EventProcessor`1.ListCheckpointsAsync(System.Threading.CancellationToken) method as if they were previously saved checkpoints.

The default starting position is Earliest.

Applies to

See also

  • <xref:Azure.Messaging.EventHubs.Primitives.EventProcessor%601.ListCheckpointsAsync(System.Threading.CancellationToken)>