SubscriptionClient.ReceiveBatchAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ReceiveBatchAsync(Int32) |
Asynchronously receives a set of messages (for batch processing). |
ReceiveBatchAsync(Int32, TimeSpan) |
Asynchronously receives a set of messages (for batch processing). |
ReceiveBatchAsync(IEnumerable<Int64>) |
Asynchronously receives a set of messages (for batch processing). |
ReceiveBatchAsync(Int32)
Asynchronously receives a set of messages (for batch processing).
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage>> ReceiveBatchAsync (int messageCount);
abstract member ReceiveBatchAsync : int -> System.Threading.Tasks.Task<seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>>
override this.ReceiveBatchAsync : int -> System.Threading.Tasks.Task<seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>>
Public Function ReceiveBatchAsync (messageCount As Integer) As Task(Of IEnumerable(Of BrokeredMessage))
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
A task instance that represents the asynchronous receive batch operation.
Applies to
ReceiveBatchAsync(Int32, TimeSpan)
Asynchronously receives a set of messages (for batch processing).
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage>> ReceiveBatchAsync (int messageCount, TimeSpan serverWaitTime);
abstract member ReceiveBatchAsync : int * TimeSpan -> System.Threading.Tasks.Task<seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>>
override this.ReceiveBatchAsync : int * TimeSpan -> System.Threading.Tasks.Task<seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>>
Public Function ReceiveBatchAsync (messageCount As Integer, serverWaitTime As TimeSpan) As Task(Of IEnumerable(Of BrokeredMessage))
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 time span the server waits for processing messages.
Returns
A task instance that represents the asynchronous receive batch operation.
Applies to
ReceiveBatchAsync(IEnumerable<Int64>)
Asynchronously receives a set of messages (for batch processing).
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage>> ReceiveBatchAsync (System.Collections.Generic.IEnumerable<long> sequenceNumbers);
abstract member ReceiveBatchAsync : seq<int64> -> System.Threading.Tasks.Task<seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>>
override this.ReceiveBatchAsync : seq<int64> -> System.Threading.Tasks.Task<seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>>
Public Function ReceiveBatchAsync (sequenceNumbers As IEnumerable(Of Long)) As Task(Of IEnumerable(Of BrokeredMessage))
Parameters
- sequenceNumbers
- IEnumerable<Int64>
The sequence number.
Returns
A task instance that represents the asynchronous receive batch operation.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기