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

MessageReceiver.PeekBatch Method

Definition

Overloads

PeekBatch(Int32)

Reads the next batch of message without changing the state of the receiver or the message source.

PeekBatch(Int64, Int32)

Reads the next batch of message without changing the state of the receiver or the message source.

PeekBatch(Int32)

Reads the next batch of message without changing the state of the receiver or the message source.

public System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> PeekBatch (int messageCount);
Parameters
messageCount
Int32

The number of message.

Returns

The batch of message to be read.

PeekBatch(Int64, Int32)

Reads the next batch of message without changing the state of the receiver or the message source.

public System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> PeekBatch (long fromSequenceNumber, int messageCount);
Parameters
fromSequenceNumber
Int64

The sequence number from where to read a batch message.

messageCount
Int32

The number of message.

Returns

The batch of message to be read.

Applies to