Gets or sets the formatter used to serialize an object into or deserialize an object from the body of a message read from or written to the queue.
'Declaration
<BrowsableAttribute(False)>
<TypeConverterAttribute("System.Messaging.Design.MessageFormatterConverter, System.Messaging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
<DefaultValueAttribute()>
<MessagingDescriptionAttribute("This is the formatter that will be used when an object is written to or read from the body.")>
Public Property Formatter As IMessageFormatter
'Usage
Dim instance As MessageQueue
Dim value As IMessageFormatter
instance.Formatter = value
value = instance.Formatter
[Browsable(false)]
[TypeConverter("System.Messaging.Design.MessageFormatterConverter, System.Messaging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DefaultValue()]
[MessagingDescription("This is the formatter that will be used when an object is written to or read from the body.")]
public IMessageFormatter Formatter {get; set;}
[Browsable(false)]
[TypeConverter("System.Messaging.Design.MessageFormatterConverter, System.Messaging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DefaultValue()]
[MessagingDescription("This is the formatter that will be used when an object is written to or read from the body.")]
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.
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