MessageReceiver.ReceiveDeferredMessageAsync 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
ReceiveDeferredMessageAsync(Int64) |
Receives a specific deferred message identified by |
ReceiveDeferredMessageAsync(IEnumerable<Int64>) |
Receives a IList<T> of deferred messages identified by |
ReceiveDeferredMessageAsync(Int64)
- Source:
- MessageReceiver.cs
Receives a specific deferred message identified by sequenceNumber
.
public System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.Message> ReceiveDeferredMessageAsync (long sequenceNumber);
abstract member ReceiveDeferredMessageAsync : int64 -> System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.Message>
override this.ReceiveDeferredMessageAsync : int64 -> System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.Message>
Public Function ReceiveDeferredMessageAsync (sequenceNumber As Long) As Task(Of Message)
Parameters
- sequenceNumber
- Int64
The sequence number of the message that will be received.
Returns
Message identified by sequence number sequenceNumber
. Returns null if no such message is found.
Throws if the message has not been deferred.
Implements
See also
Applies to
ReceiveDeferredMessageAsync(IEnumerable<Int64>)
- Source:
- MessageReceiver.cs
Receives a IList<T> of deferred messages identified by sequenceNumbers
.
public System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.ServiceBus.Message>> ReceiveDeferredMessageAsync (System.Collections.Generic.IEnumerable<long> sequenceNumbers);
abstract member ReceiveDeferredMessageAsync : seq<int64> -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.ServiceBus.Message>>
override this.ReceiveDeferredMessageAsync : seq<int64> -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.ServiceBus.Message>>
Public Function ReceiveDeferredMessageAsync (sequenceNumbers As IEnumerable(Of Long)) As Task(Of IList(Of Message))
Parameters
- sequenceNumbers
- IEnumerable<Int64>
An IEnumerable<T> containing the sequence numbers to receive.
Returns
Messages identified by sequence number are returned. Returns null if no messages are found. Throws if the messages have not been deferred.
Implements
See also
Applies to
Azure SDK for .NET