Creates a new Object message containing the given .NET object as the body

Namespace:  Apache.NMS
Assembly:  Apache.NMS (in Apache.NMS.dll)

Syntax

Visual Basic
Function CreateObjectMessage ( _
	body As Object _
) As IObjectMessage
C#
IObjectMessage CreateObjectMessage(
	Object body
)
Visual C++
IObjectMessage^ CreateObjectMessage(
	Object^ body
)
JavaScript
function createObjectMessage(body);

Parameters

body
Type: System..::..Object

See Also