PeekBatch Method
Collapse the table of content
Expand the table of content

QueueClient.PeekBatch Method


Peeks a batch of message.

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)


Peeks a batch of message.

System_CAPS_pubmethodPeekBatch(Int64, Int32)

Peeks a batch of messages.

Each client instance caches the last sequence number and unless explicitly indicated, uses that sequence number to peek the next message. For example, if you peek all messages in a queue (in batches, providing the fromSequenceNumber parameter), and then peek with no parameter, the method returns no messages.

var messages = queueClient.PeekBatch(messageCount: 10);
Return to top
© 2015 Microsoft