Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EmsTemplate.ConvertAndSend(Destination, Object) Method

Send the given object to the specified destination, converting the object to a EMS message with a configured IMessageConverter.

[Visual Basic]
Public NotOverridable Overloads Sub ConvertAndSend( _
   ByVal destination As Destination, _
   ByVal message As Object _
) _
    Implements IEmsOperations.ConvertAndSend
[C#]
public void ConvertAndSend(
   Destination destination,
   object message
);

Parameters

destination
the destination to send this message to
message
the object to convert to a message

Implements

IEmsOperations.ConvertAndSend

Exceptions

Exception Type Condition
EMSException If there is any problem accessing the EMS API

See Also

EmsTemplate Class | Spring.Messaging.Ems.Core Namespace | EmsTemplate.ConvertAndSend Overload List