SubscriptionClient.PeekBatchAsync Method

Definition

Overloads

PeekBatchAsync(Int32)

Asynchronously returns without removing the first messages in a batch.

PeekBatchAsync(Int64, Int32)

Asynchronously returns without removing the first messages in a batch.

PeekBatchAsync(Int32)

Asynchronously returns without removing the first messages in a batch.

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

The number of messages in a batch.

Returns

A task instance that represents the asynchronous peek batch operation.

PeekBatchAsync(Int64, Int32)

Asynchronously returns without removing the first messages in a batch.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage>> PeekBatchAsync (long fromSequenceNumber, int messageCount);
Parameters
fromSequenceNumber
Int64

The starting point from which to browse a message.

messageCount
Int32

The number of messages in a batch.

Returns

A task instance that represents the asynchronous peek batch operation.

Applies to