Sends the message to the default destination with the explicit QoS configuration. The object must be serializable to XML.
Namespace:
Apache.NMSAssembly: Apache.NMS (in Apache.NMS.dll)
Syntax
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Sub Send ( _ producer As IMessageProducer, _ objMessage As Object, _ deliveryMode As MsgDeliveryMode, _ priority As MsgPriority, _ timeToLive As TimeSpan _ ) |
C# |
---|
public static void Send( this IMessageProducer producer, Object objMessage, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive ) |
Visual C++ |
---|
[ExtensionAttribute] public: static void Send( IMessageProducer^ producer, Object^ objMessage, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive ) |
JavaScript |
---|
Apache.NMS.MessageProducerExtensions.send = function(producer, objMessage, deliveryMode, priority, timeToLive); |
Parameters
- producer
- Type: Apache.NMS..::..IMessageProducer
- objMessage
- Type: System..::..Object
- deliveryMode
- Type: Apache.NMS..::..MsgDeliveryMode
- priority
- Type: Apache.NMS..::..MsgPriority
- timeToLive
- Type: System..::..TimeSpan