Receives the message from the destination for this consumer. The object must be de-serializable from XML.
Namespace:
Apache.NMSAssembly: Apache.NMS (in Apache.NMS.dll)
Syntax
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function Receive(Of T As Class) ( _ consumer As IMessageConsumer _ ) As T |
C# |
---|
public static T Receive<T>( this IMessageConsumer consumer ) where T : class |
Visual C++ |
---|
[ExtensionAttribute] public: generic<typename T> where T : ref class static T Receive( IMessageConsumer^ consumer ) |
JavaScript |
---|
|
Parameters
- consumer
- Type: Apache.NMS..::..IMessageConsumer
Type Parameters
- T