IMessageFormatter Interface
Serializes or deserializes objects from the body of a Message Queuing message.
For a list of all members of this type, see IMessageFormatter Members.
System.ICloneable
System.Messaging.IMessageFormatter
[Visual Basic] Public Interface IMessageFormatter Inherits ICloneable [C#] public interface IMessageFormatter : ICloneable [C++] public __gc __interface IMessageFormatter : public ICloneable [JScript] public interface IMessageFormatter implements ICloneable
Classes that Implement IMessageFormatter
| Class | Description |
|---|---|
| ActiveXMessageFormatter | Serializes or deserializes primitive data types and other objects to or from the body of a Message Queuing message, using a format that is compatible with the MSMQ ActiveX Component. |
| BinaryMessageFormatter | Serializes or deserializes an object, or an entire graph of connected objects, to or from the body of a Message Queuing message, using a binary format. |
| XmlMessageFormatter | Serializes and deserializes objects to or from the body of a message, using the XML format based on the XSD schema definition. |
Remarks
When an application sends a message to the queue using an instance of the MessageQueue class, the formatter serializes the object (which can be a instance of any class) into a stream and inserts it into the message body. When reading from a queue using a MessageQueue, the formatter deserializes the message data into the Body property of a Message.
BinaryMessageFormatter and ActiveXMessageFormatter provide faster throughput than the XmlMessageFormatter. The ActiveXMessageFormatter allows interoperability with Visual Basic 6.0 Message Queuing applications. The XmlMessageFormatter is loosely coupled, which means that the server and client can version the type that is sent and received independently.
Requirements
Namespace: System.Messaging
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Messaging (in System.Messaging.dll)
See Also
IMessageFormatter Members | System.Messaging Namespace | MessageQueue.Formatter | Message.Formatter | ActiveXMessageFormatter | BinaryMessageFormatter | XmlMessageFormatter