您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

MessageReceiver.ReceiveAsync Method

Definition

Overloads

ReceiveAsync(Int64)

Asynchronously receives a message from the current queue or topic.

ReceiveAsync(TimeSpan)

Asynchronously receives a message from the current queue or topic.

ReceiveAsync()

Asynchronously receives a message from the current queue or topic.

ReceiveAsync(Int64)

Asynchronously receives a message from the current queue or topic.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage> ReceiveAsync (long sequenceNumber);
Parameters
sequenceNumber
Int64

The sequence number of the message to receive.

Returns

The asynchronous operation.

ReceiveAsync(TimeSpan)

Asynchronously receives a message from the current queue or topic.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage> ReceiveAsync (TimeSpan serverWaitTime);
Parameters
serverWaitTime
TimeSpan

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

Returns

The asynchronous operation.

ReceiveAsync()

Asynchronously receives a message from the current queue or topic.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage> ReceiveAsync ();
Returns

The asynchronous operation.

Applies to