System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / Formatter Property



In This Topic
    Formatter Property (MessageQueue)
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Property Formatter As IMessageFormatter
    'Usage
     
    
    Dim instance As MessageQueue
    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.
    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