MessageReceiver.ReceiveDeferredMessageAsync Method

Definition

Overloads

ReceiveDeferredMessageAsync(IEnumerable<Int64>)

Receives a System.Collections.Generic.IList`1 of deferred messages identified by sequenceNumbers.

ReceiveDeferredMessageAsync(Int64)

Receives a specific deferred message identified by sequenceNumber.

ReceiveDeferredMessageAsync(IEnumerable<Int64>)

Receives a System.Collections.Generic.IList`1 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
System.Collections.Generic.IEnumerable<System.Int64>

An System.Collections.Generic.IEnumerable`1 containing the sequence numbers to receive.

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IList<Message>>

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

ReceiveDeferredMessageAsync(Int64)

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
System.Int64

The sequence number of the message that will be received.

Returns

System.Threading.Tasks.Task<Message>

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