Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IMessageQueueOperations.ConvertAndSend(String, Object, MessagePostProcessorDelegate) Method

Send the given object to the specified destination, converting the object to a MSMQ message with a configured IMessageConverter and resolving the destination name to a MessageQueue with an IMessageQueueFactory The MessagePostProcessorDelegate callback allows for modification of the message after conversion.

[Visual Basic]
Public Sub ConvertAndSend( _
   ByVal messageQueueObjectName As String, _
   ByVal obj As Object, _
   ByVal messagePostProcessorDelegate As MessagePostProcessorDelegate _
void ConvertAndSend(
   string messageQueueObjectName,
   object obj,
   MessagePostProcessorDelegate messagePostProcessorDelegate


the name of the destination queue to send this message to (to be resolved to an actual MessageQueue by a IMessageQueueFactory)
the object to convert to a message
the callback to modify the message


Exception Type Condition
MessagingException if thrown by MSMQ API methods

See Also

IMessageQueueOperations Interface | Spring.Messaging.Core Namespace | IMessageQueueOperations.ConvertAndSend Overload List