An NDoc Documented Class Library

IMessageProducer.Send Method (IMessage[], DeliveryMode, Int32, Int64)

Sends a list of messages to the message producer's destination.

void Send(
   IMessage[] messages,
   DeliveryMode deliveryMode,
   int priority,
   long timeToLive
);

Parameters

messages
The messages to send.
deliveryMode
The delivery mode for the message.
priority
The priority for the message.
timeToLive
The lifetime, in milliseconds, for the message.

Exceptions

Exception Type Condition
MsgException Thrown when an error occurs sending the message.
MessageFormatException Thrown when an invalid message is specified.
InvalidDestinationException Thrown when sending to an invalid destination.
NotSupportedException Thrown when the message producer does not have a destination.

See Also

IMessageProducer Interface | webMethods.Msg Namespace | IMessageProducer.Send Overload List