QueueClient.Receive Method (TimeSpan)
Receives a message using the InternalReceiver.
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
abstract Receive : serverWaitTime:TimeSpan -> BrokeredMessage override Receive : serverWaitTime:TimeSpan -> BrokeredMessage
- Type: System.TimeSpan
The time span the server waits for receiving a message before it times out.
Thrown if the serverWaitTime is negative.
Thrown if the message receive operation times out.
Thrown if the client entity has been closed or aborted.
Thrown if an I/O or security error occurs.
Thrown if the messaging entity associated with the operation does not exist or it has been deleted.
Thrown if the user code has performed some unexpected operations, or the Service Bus gateway is down. Check the exception message for the actual error.