SALES: 1-800-867-1380

QueueClient.PeekBatchAsync Method (Int64, Int32)

Asynchronously peeks a batch of message.

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

'Declaration
Public Function PeekBatchAsync ( _
	fromSequenceNumber As Long, _
	messageCount As Integer _
) As Task(Of IEnumerable(Of BrokeredMessage))
'Usage
Dim instance As QueueClient
Dim fromSequenceNumber As Long
Dim messageCount As Integer
Dim returnValue As Task(Of IEnumerable(Of BrokeredMessage))

returnValue = instance.PeekBatchAsync(fromSequenceNumber, _
	messageCount)

Parameters

fromSequenceNumber
Type: System.Int64
The sequence number from where to peek a batch of message.
messageCount
Type: System.Int32
The number of message.

Return Value

Type: System.Threading.Tasks.Task(Of IEnumerable(Of BrokeredMessage))
The asynchronous operation.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft