The NMS Class Library (.Net Messaging Library)

IMessageConsumer.Receive Method

Waits until a message is available and returns it

Overload List

Waits until a message is available and returns it

IMessage Receive();

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

IMessage Receive(TimeSpan);

See Also

IMessageConsumer Interface | NMS Namespace