SALES: 1-800-867-1380

SubscriptionClient.ReceiveBatchAsync Method (Int32)

Asynchronously receives a set of messages (for batch processing).

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

'Declaration
Public Function ReceiveBatchAsync ( _
	messageCount As Integer _
) As Task(Of IEnumerable(Of BrokeredMessage))
'Usage
Dim instance As SubscriptionClient 
Dim messageCount As Integer 
Dim returnValue As Task(Of IEnumerable(Of BrokeredMessage))

returnValue = instance.ReceiveBatchAsync(messageCount)

Parameters

messageCount
Type: System.Int32
The maximum number of messages to return in the batch.

Return Value

Type: System.Threading.Tasks.Task(Of IEnumerable(Of BrokeredMessage))
A task instance that represents the asynchronous receive batch operation.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft