Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.
Top

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);

Community Additions

ADD
Show:
© 2015 Microsoft