你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

QueueClient.PeekBatchAsync 方法

定义

重载

PeekBatchAsync(Int32)

异步速览一批消息。

PeekBatchAsync(Int64, Int32)

异步速览一批消息。

PeekBatchAsync(Int32)

异步速览一批消息。

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))

参数

messageCount
Int32

消息数。

返回

异步操作。

适用于

PeekBatchAsync(Int64, Int32)

异步速览一批消息。

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))

参数

fromSequenceNumber
Int64

从中查看一批消息的序列号。

messageCount
Int32

消息数。

返回

异步操作。

适用于