您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

MessageReceiver.ReceiveBatchAsync Method

Definition

Overloads

ReceiveBatchAsync(IEnumerable<Int64>)

Asynchronously receives a batch of messages.

ReceiveBatchAsync(Int32)

Asynchronously receives a batch of messages.

ReceiveBatchAsync(Int32, TimeSpan)

Asynchronously receives a batch of messages.

ReceiveBatchAsync(IEnumerable<Int64>)

Asynchronously receives a batch of messages.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage>> ReceiveBatchAsync (System.Collections.Generic.IEnumerable<long> sequenceNumbers);
Parameters
sequenceNumbers
IEnumerable<Int64>

The sequence numbers.

Returns

The asynchronous operation.

ReceiveBatchAsync(Int32)

Asynchronously receives a batch of messages.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage>> ReceiveBatchAsync (int messageCount);
Parameters
messageCount
Int32

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

Returns

The asynchronous operation.

ReceiveBatchAsync(Int32, TimeSpan)

Asynchronously receives a batch of messages.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage>> ReceiveBatchAsync (int messageCount, TimeSpan serverWaitTime);
Parameters
messageCount
Int32

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

serverWaitTime
TimeSpan

The server wait time.

Returns

The asynchronous operation.

Applies to