Export (0) Print
Expand All

IMessageFormatter Interface

Serializes or deserializes objects from the body of a Message Queuing message.

Namespace: System.Messaging
Assembly: System.Messaging (in system.messaging.dll)

public interface IMessageFormatter : ICloneable
public interface IMessageFormatter extends ICloneable
public interface IMessageFormatter extends ICloneable

When an application sends a message to the queue using an instance of the MessageQueue class, the formatter serializes the object (which can be an 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.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft