System.Messaging Reference (Document! X Sample)
Message Constructor(Object)



System.Messaging Namespace > Message Class > Message Constructor : Message Constructor(Object)
The object to be serialized into the body of the message.
Initializes a new instance of the Message class, using the XmlMessageFormatter to serialize the specified object into the body of the message.
Syntax
'Declaration
 
Public Function New( _
   ByVal body As Object _
)
'Usage
 
Dim body As Object
 
Dim instance As New Message(body)
public Message( 
   object body
)
public:
Message( 
   Object^ body
)

Parameters

body
The object to be serialized into the body of the message.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Message Class
Message Members
Overload List