SALES: 1-800-867-1380

SubscriptionClient.ReceiveAsync Method (TimeSpan)


Asynchronously receives a message using the P:Microsoft.ServiceBus.Messaging.QueueClient.InternalReceiver.

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public Task<BrokeredMessage> ReceiveAsync(
	TimeSpan serverWaitTime


Type: System.TimeSpan

The time span the server waits for receiving a message before it times out.

Return Value

Type: System.Threading.Tasks.Task<BrokeredMessage>

A task instance that represents the asynchronous receive operation.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft