Export (0) Print
Expand All

QueueClient.ReceiveBatchAsync Method (Int32, TimeSpan)

Asynchronously receives a message batch.

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 QueueClient 
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 in a batch.
serverWaitTime
Type: System.TimeSpan
The time span that the server will wait for the message batch to arrive before it times out.

Return Value

Type: System.Threading.Tasks.Task(Of IEnumerable(Of BrokeredMessage))
The asynchronous operation.

Community Additions

ADD
Show:
© 2015 Microsoft