SALES: 1-800-867-1380

MessageReceiver.Receive Method (TimeSpan)

Receives a BrokeredMessage from the current queue or topic.

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

Public Function Receive ( _
	serverWaitTime As TimeSpan _
) As BrokeredMessage
Dim instance As MessageReceiver
Dim serverWaitTime As TimeSpan
Dim returnValue As BrokeredMessage

returnValue = instance.Receive(serverWaitTime)


Type: System.TimeSpan
The time span the server waits before the operation times out.

Return Value

Type: Microsoft.ServiceBus.Messaging.BrokeredMessage
The BrokeredMessage that represents the received message.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft