XmlMessageFormatter (System.Messaging.XmlMessageFormatter)

Inherits: System.Object

Interfaces: ICloneable, IMessageFormatter

Derived Types: 0

Assembly: System.Messaging.dll

Serializes and deserializes objects to or from the body of a message, using the XML format based on the XSD schema definition.

VB.NET C#

C#

public class XmlMessageFormatter : System.ICloneable, System.Messaging.IMessageFormatter
{
}

Articles

How to receive message from a Microsoft message queue

msg.Formatter = new System.Messaging.XmlMessageFormatter( new string[] {"System.String"}); Console.WriteLine(msg.Body); About the author of this programming example or tutorial:

Using Message Queues

System.Messaging.Message msg = queue.Receive(); msg.Formatter = new System.Messaging.XmlMessageFormatter( new string [] {"System.String"}); Console.WriteLine(msg.Body)

Secured Intranet Messenger using MSMQ in C#

msg.Formatter = new System.Messaging.XmlMessageFormatter(target); txtprevmsgs.Text += msg.Body.ToString()+ " Recieved from " +msg.Label.ToString().Substring(msg.Label.ToString

ITarchitect | Articles | Be explicit!

Message msg = new Message(); msg.Formatter = new System.Messaging.XmlMessageFormatter( new Type[] {typeof(MyMessage)}); msg.Body = new MyMessage(“Hello, world ...

MessageQueueException

Queue and Thread ... Formatter = new System.Messaging.XmlMessageFormatter(new string[] { "System.String" }); Label1.Text = msg.Body.ToString(); } catch ( ...

Specifying the Formatter for Retrieved Messages

Visual Basic Dim mq As New System.Messaging.MessageQueue(".\MyQueue") Dim formatter As System.Messaging.XmlMessageFormatter = _ CType(mq.Formatter, System.Messaging ...

How to: Receive Messages Asynchronously

... ReceiveCompletedEventArgs e) { System.Messaging.Message m = mq.EndReceive(e.AsyncResult); m.Formatter = new System.Messaging.XmlMessageFormatter ...

Custom .NET Training ASP.NET Training Silverlight Training LINQ Training IT Support