The NMS Class Library (.Net Messaging Library)

IMessageConsumer.Receive Method (TimeSpan)

If a message is available within the timeout duration it is returned otherwise this method returns null

IMessage Receive(
   TimeSpan timeout
);

See Also

IMessageConsumer Interface | NMS Namespace | IMessageConsumer.Receive Overload List