Export (0) Print
Expand All

QueueClient.Peek Method

Returns without removing the first message in the queue.

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 Peek() Returns without removing the first message in the queue.
Public method Peek(Int64) Returns without removing the first message in the queue.
Top

This method enables you to view messages without locking or receiving them.

QueueClient queueClient = QueueClient.Create("myQ");
var message = queueClient.Peek(); // does not lock the message
var message = queueClient.Peek(fromSequenceNumber: 4); // specific starting point

Community Additions

ADD
Show:
© 2015 Microsoft