SubscriptionClient.ReceiveAsync 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
ReceiveAsync() |
Asynchronously receives a message using the Microsoft.ServiceBus.Messaging.SubscriptionClient.InternalReceiver. |
ReceiveAsync(Int64) |
Asynchronously receives a message using the Microsoft.ServiceBus.Messaging.SubscriptionClient.InternalReceiver. This method only works for deferred message, not regular one. |
ReceiveAsync(TimeSpan) |
Asynchronously receives a message using the Microsoft.ServiceBus.Messaging.SubscriptionClient.InternalReceiver. |
ReceiveAsync()
Asynchronously receives a message using the Microsoft.ServiceBus.Messaging.SubscriptionClient.InternalReceiver.
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
A task instance that represents the asynchronous receive operation.
Applies to
ReceiveAsync(Int64)
Asynchronously receives a message using the Microsoft.ServiceBus.Messaging.SubscriptionClient.InternalReceiver. This method only works for deferred message, not regular one.
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
The sequence number of the deferred message to receive.
Returns
A task instance that represents the asynchronous receive operation.
Applies to
ReceiveAsync(TimeSpan)
Asynchronously receives a message using the Microsoft.ServiceBus.Messaging.SubscriptionClient.InternalReceiver.
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
The time span the server waits for receiving a message before it times out.
Returns
A task instance that represents the asynchronous receive operation.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應