QueueClient.ReceiveBatch 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
ReceiveBatch(IEnumerable<Int64>) |
Receives a message batch. |
ReceiveBatch(Int32) |
Receives a message batch. |
ReceiveBatch(Int32, TimeSpan) |
Receives a message batch. |
ReceiveBatch(IEnumerable<Int64>)
Receives a message batch.
public System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> ReceiveBatch (System.Collections.Generic.IEnumerable<long> sequenceNumbers);
abstract member ReceiveBatch : seq<int64> -> seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>
override this.ReceiveBatch : seq<int64> -> seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>
Public Function ReceiveBatch (sequenceNumbers As IEnumerable(Of Long)) As IEnumerable(Of BrokeredMessage)
Parameters
- sequenceNumbers
- IEnumerable<Int64>
The sequence numbers associated with the messages in the batch.
Returns
A message batch.
Remarks
A Null can be return by this API if operation exceeded the timeout specified, or the operations succeeded but the message with the requested sequenceNumber cannot be located.
Applies to
ReceiveBatch(Int32)
Receives a message batch.
public System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> ReceiveBatch (int messageCount);
abstract member ReceiveBatch : int -> seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>
override this.ReceiveBatch : int -> seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>
Public Function ReceiveBatch (messageCount As Integer) As 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 message batch.
Remarks
A Null can be return by this API if operation exceeded the timeout specified, or the operations succeeded but there are no more messages to be received.
Applies to
ReceiveBatch(Int32, TimeSpan)
Receives a message batch.
public System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> ReceiveBatch (int messageCount, TimeSpan serverWaitTime);
abstract member ReceiveBatch : int * TimeSpan -> seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>
override this.ReceiveBatch : int * TimeSpan -> seq<Microsoft.ServiceBus.Messaging.BrokeredMessage>
Public Function ReceiveBatch (messageCount As Integer, serverWaitTime As TimeSpan) As IEnumerable(Of BrokeredMessage)
Parameters
- messageCount
- Int32
The number of messages to receive in a batch.As this is an approximation,
fewer or more messages than messageCount
may be returned.
- serverWaitTime
- TimeSpan
The time span that the server will wait for the message batch to arrive before it times out.
Returns
A message batch.
Remarks
A Null can be return by this API if operation exceeded the timeout specified, or the operations succeeded but there are no more messages to be received.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기