SALES: 1-800-867-1380

SubscriptionClient.ReceiveBatch Method (Int32, TimeSpan)

 

Receives a batch after the asynchronous operation.

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 in a batch.

serverWaitTime
Type: System.TimeSpan

The time span the server waits for processing messages.

Return Value

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

A batch after the asynchronous operation.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft