Extension function to create a text message from an object. The object must be serializable to XML.
Namespace:
Apache.NMSAssembly: Apache.NMS (in Apache.NMS.dll)
Syntax
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function CreateXmlMessage ( _ session As ISession, _ obj As Object _ ) As ITextMessage |
C# |
---|
public static ITextMessage CreateXmlMessage( this ISession session, Object obj ) |
Visual C++ |
---|
[ExtensionAttribute] public: static ITextMessage^ CreateXmlMessage( ISession^ session, Object^ obj ) |
JavaScript |
---|
Apache.NMS.SessionExtensions.createXmlMessage = function(session, obj); |