您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

MessageReceiver.OnPeek(TrackingContext, Int64, Int32, TimeSpan) MessageReceiver.OnPeek(TrackingContext, Int64, Int32, TimeSpan) Method

Definition

Executes upon calling the Peek operation.

protected virtual System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> OnPeek (Microsoft.ServiceBus.Tracing.TrackingContext trackingContext, long fromSequenceNumber, int messageCount, TimeSpan timeout);
abstract member OnPeek : Microsoft.ServiceBus.Tracing.TrackingContext * int64 * int * TimeSpan -> seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>
override this.OnPeek : Microsoft.ServiceBus.Tracing.TrackingContext * int64 * int * TimeSpan -> seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>
Parameters
trackingContext
TrackingContext TrackingContext

The tracking context.

fromSequenceNumber
Int64 Int64

The sequence number from where to peek.

messageCount
Int32 Int32

The number of message.

timeout
TimeSpan TimeSpan

The time span the operation waits before it times out.

Returns

The messages peeked.

Applies to