Export (0) Print
Expand All

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
)

Parameters

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

Return Value

Type: System.Collections.Generic.IEnumerable<BrokeredMessage>
A batch of messages.

Community Additions

ADD
Show:
© 2014 Microsoft