MessageReceiver.PeekBatchAsync Method (Int64, Int32)

 

Asynchronously reads the next batch of message without changing the state of the receiver or the message source.

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

public Task<IEnumerable<BrokeredMessage>> PeekBatchAsync(
	long fromSequenceNumber,
	int messageCount
)

Parameters

fromSequenceNumber
Type: System.Int64

The sequence number from where to read a batch message.

messageCount
Type: System.Int32

The number of message.

Return Value

Type: System.Threading.Tasks.Task<IEnumerable<BrokeredMessage>>

The asynchronous operation.

Return to top
Show: