Sends the message to the given destination

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

Syntax

Visual Basic
<ExtensionAttribute> _
Public Shared Sub Send ( _
	producer As IMessageProducer, _
	destination As IDestination, _
	objMessage As Object _
)
C#
public static void Send(
	this IMessageProducer producer,
	IDestination destination,
	Object objMessage
)
Visual C++
[ExtensionAttribute]
public:
static void Send(
	IMessageProducer^ producer, 
	IDestination^ destination, 
	Object^ objMessage
)
JavaScript
Apache.NMS.MessageProducerExtensions.send = function(producer, destination, objMessage);

Parameters

producer
Type: Apache.NMS..::..IMessageProducer
destination
Type: Apache.NMS..::..IDestination
objMessage
Type: System..::..Object

Usage Note

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

See Also