System.Messaging Reference (Document! X Sample)



Body Property (Message)
Gets or sets the content of the message.
Syntax
'Declaration
 
Public Property Body As Object
'Usage
 
Dim instance As Message
Dim value As Object
 
instance.Body = value
 
value = instance.Body
public object Body {get; set;}
public:
property Object^ Body {
   Object^ get();
   void set (    Object^ value);
}

Property Value

An object that specifies the message contents. The object can be a string, a date, a currency, a number, an array of bytes, or any managed object.
Exceptions
ExceptionDescription
The Formatter property is null.-or- The message queue is filtered to ignore the Body property.
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