QueueClient.PeekBatchAsync Method

Definition

Overloads

PeekBatchAsync(Int64, Int32)

Asynchronously peeks a batch of message.

PeekBatchAsync(Int32)

Asynchronously peeks a batch of message.

PeekBatchAsync(Int64, Int32)

Asynchronously peeks a batch of message.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage>> PeekBatchAsync (long fromSequenceNumber, int messageCount);
abstract member PeekBatchAsync : int64 * int -> System.Threading.Tasks.Task<seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>>
override this.PeekBatchAsync : int64 * int -> System.Threading.Tasks.Task<seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>>
Public Function PeekBatchAsync (fromSequenceNumber As Long, messageCount As Integer) As Task(Of IEnumerable(Of BrokeredMessage))

Parameters

fromSequenceNumber
System.Int64

The sequence number from where to peek a batch of message.

messageCount
System.Int32

The number of message.

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<BrokeredMessage>>

The asynchronous operation.

Implements

Microsoft.ServiceBus.Messaging.IMessageBrowser.PeekBatchAsync(System.Int64,System.Int32)

Applies to

PeekBatchAsync(Int32)

Asynchronously peeks a batch of message.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage>> PeekBatchAsync (int messageCount);
abstract member PeekBatchAsync : int -> System.Threading.Tasks.Task<seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>>
override this.PeekBatchAsync : int -> System.Threading.Tasks.Task<seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>>
Public Function PeekBatchAsync (messageCount As Integer) As Task(Of IEnumerable(Of BrokeredMessage))

Parameters

messageCount
System.Int32

The number of message.

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<BrokeredMessage>>

The asynchronous operation.

Implements

Microsoft.ServiceBus.Messaging.IMessageBrowser.PeekBatchAsync(System.Int32)

Applies to