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

MessageReceiver.ReceiveBatch Method (Int32, TimeSpan)


Receives a batch of messages.

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

public IEnumerable<BrokeredMessage> ReceiveBatch(
	int messageCount,
	TimeSpan serverWaitTime


Type: System.Int32

The number of messages to return in the batch. As this is an approximation, fewer or more messages than messageCount may be returned.

Type: System.TimeSpan

The server wait time.

Return Value

Type: System.Collections.Generic.IEnumerable<BrokeredMessage>

A batch of messages.

Return to top
© 2016 Microsoft