SALES: 1-800-867-1380

QueueClient.Peek Method ()

 

Returns without removing the first message in the queue.

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

public BrokeredMessage Peek()

Return Value

Type: Microsoft.ServiceBus.Messaging.BrokeredMessage

A brokered message. Returns all properties and the message body.

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

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2016 Microsoft