System.Messaging Reference (Document! X Sample)



Formatter Property (Message)
Gets or sets the formatter used to serialize an object into or deserialize an object from the message body.
Syntax
'Declaration
 
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<BrowsableAttribute(False)>
Public Property Formatter As IMessageFormatter
'Usage
 
Dim instance As Message
Dim value As IMessageFormatter
 
instance.Formatter = value
 
value = instance.Formatter
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Browsable(false)]
public IMessageFormatter Formatter {get; set;}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Browsable(false)]
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