Receives the message from the destination for this consumer. The object must be de-serializable from XML.

Namespace:  Apache.NMS
Assembly:  Apache.NMS (in Apache.NMS.dll)

Syntax

Visual Basic
<ExtensionAttribute> _
Public Shared Function ReceiveNoWait(Of T As Class) ( _
	consumer As IMessageConsumer _
) As T
C#
public static T ReceiveNoWait<T>(
	this IMessageConsumer consumer
)
where T : class
Visual C++
[ExtensionAttribute]
public:
generic<typename T>
where T : ref class
static T ReceiveNoWait(
	IMessageConsumer^ consumer
)
JavaScript
JavaScript does not support generic types or methods.

Parameters

consumer
Type: Apache.NMS..::..IMessageConsumer

Type Parameters

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMessageConsumer. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also