Sends the message to the given destination with the explicit QoS configuration. The object must be serializable to XML.

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, _
	deliveryMode As MsgDeliveryMode, _
	priority As MsgPriority, _
	timeToLive As TimeSpan _
)
C#
public static void Send(
	this IMessageProducer producer,
	IDestination destination,
	Object objMessage,
	MsgDeliveryMode deliveryMode,
	MsgPriority priority,
	TimeSpan timeToLive
)
Visual C++
[ExtensionAttribute]
public:
static void Send(
	IMessageProducer^ producer, 
	IDestination^ destination, 
	Object^ objMessage, 
	MsgDeliveryMode deliveryMode, 
	MsgPriority priority, 
	TimeSpan timeToLive
)
JavaScript
Apache.NMS.MessageProducerExtensions.send = function(producer, destination, objMessage, deliveryMode, priority, timeToLive);

Parameters

producer
Type: Apache.NMS..::..IMessageProducer
destination
Type: Apache.NMS..::..IDestination
objMessage
Type: System..::..Object
deliveryMode
Type: Apache.NMS..::..MsgDeliveryMode
priority
Type: Apache.NMS..::..MsgPriority
timeToLive
Type: System..::..TimeSpan

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