SALES: 1-800-867-1380

MessageReceiver.ReceiveBatchAsync Method (Int32, TimeSpan)

Asynchronously receives a batch of messages.

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

'Declaration
Public Function ReceiveBatchAsync ( _
	messageCount As Integer, _
	serverWaitTime As TimeSpan _
) As Task(Of IEnumerable(Of BrokeredMessage))
'Usage
Dim instance As MessageReceiver
Dim messageCount As Integer
Dim serverWaitTime As TimeSpan
Dim returnValue As Task(Of IEnumerable(Of BrokeredMessage))

returnValue = instance.ReceiveBatchAsync(messageCount, _
	serverWaitTime)

Parameters

messageCount
Type: System.Int32
The maximum number of messages to receive.
serverWaitTime
Type: System.TimeSpan
The server wait time.

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