SALES: 1-800-867-1380

QueueClient.PeekBatch Method

Peeks a batch of message.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method PeekBatch(Int32) Peeks a batch of message.
Public method PeekBatch(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);
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft