MessageReceiver.ReceiveAsync MessageReceiver.ReceiveAsync MessageReceiver.ReceiveAsync MessageReceiver.ReceiveAsync Method

Definition

Overloads

ReceiveAsync(Int64) ReceiveAsync(Int64) ReceiveAsync(Int64) ReceiveAsync(Int64)

Asynchronously receives a message from the current queue or topic.

ReceiveAsync(TimeSpan) ReceiveAsync(TimeSpan) ReceiveAsync(TimeSpan) ReceiveAsync(TimeSpan)

Asynchronously receives a message from the current queue or topic.

ReceiveAsync() ReceiveAsync() ReceiveAsync() ReceiveAsync()

Asynchronously receives a message from the current queue or topic.

ReceiveAsync(Int64) ReceiveAsync(Int64) ReceiveAsync(Int64) ReceiveAsync(Int64)

Asynchronously receives a message from the current queue or topic.

public:
 virtual System::Threading::Tasks::Task<Microsoft::ServiceBus::Messaging::BrokeredMessage ^> ^ ReceiveAsync(long sequenceNumber);
public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage> ReceiveAsync (long sequenceNumber);
abstract member ReceiveAsync : int64 -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage>
override this.ReceiveAsync : int64 -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage>
Public Function ReceiveAsync (sequenceNumber As Long) As Task(Of BrokeredMessage)
Parameters
sequenceNumber
Int64 Int64 Int64 Int64

The sequence number of the message to receive.

Returns

The asynchronous operation.

ReceiveAsync(TimeSpan) ReceiveAsync(TimeSpan) ReceiveAsync(TimeSpan) ReceiveAsync(TimeSpan)

Asynchronously receives a message from the current queue or topic.

public:
 virtual System::Threading::Tasks::Task<Microsoft::ServiceBus::Messaging::BrokeredMessage ^> ^ ReceiveAsync(TimeSpan serverWaitTime);
public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage> ReceiveAsync (TimeSpan serverWaitTime);
abstract member ReceiveAsync : TimeSpan -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage>
override this.ReceiveAsync : TimeSpan -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage>
Public Function ReceiveAsync (serverWaitTime As TimeSpan) As Task(Of BrokeredMessage)
Parameters
serverWaitTime
TimeSpan TimeSpan TimeSpan TimeSpan

The time span the server waits before the operation times out.

Returns

The asynchronous operation.

ReceiveAsync() ReceiveAsync() ReceiveAsync() ReceiveAsync()

Asynchronously receives a message from the current queue or topic.

public:
 virtual System::Threading::Tasks::Task<Microsoft::ServiceBus::Messaging::BrokeredMessage ^> ^ ReceiveAsync();
public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage> ReceiveAsync ();
abstract member ReceiveAsync : unit -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage>
override this.ReceiveAsync : unit -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage>
Public Function ReceiveAsync () As Task(Of BrokeredMessage)
Returns

The asynchronous operation.

Applies to