SALES: 1-800-867-1380
ReceiveBatchAsync Method (Int32, TimeSpan)
Collapse the table of content
Expand the table of content

MessageReceiver::ReceiveBatchAsync Method (Int32, TimeSpan)

 

Asynchronously receives a batch of messages.

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

public:
virtual Task<IEnumerable<BrokeredMessage^>^>^ ReceiveBatchAsync(
	int messageCount,
	TimeSpan serverWaitTime
) sealed

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<IEnumerable<BrokeredMessage^>^>^

The asynchronous operation.

Return to top
Show:
© 2016 Microsoft