System.Messaging Reference (Document! X Sample)
Formatter Property (Message)



System.Messaging Namespace > Message Class : Formatter Property
Gets or sets the formatter used to serialize an object into or deserialize an object from the message body.
Syntax
'Declaration
 
Public Property Formatter As IMessageFormatter
'Usage
 
Dim instance As Message
Dim value As IMessageFormatter
 
instance.Formatter = value
 
value = instance.Formatter
public IMessageFormatter Formatter {get; set;}
public:
property IMessageFormatter^ Formatter {
   IMessageFormatter^ get();
   void set (    IMessageFormatter^ value);
}

Property Value

The IMessageFormatter that produces a stream to be written to or read from the message body. The default is XmlMessageFormatter.
Exceptions
ExceptionDescription
The Formatter property is null.
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