Get the Message - MSMQ

The Message itself

If you look closely at the sample code in Sending a Message, you will notice that the body of the message is simply a text string. As we mentioned earlier, this is a simplification that we used for the example. In reality, the message that is sent to and received from the queue is a byte array. In other words, it can be pretty much any structure you want, including such things as text, COM objects, Word documents, Excel spreadsheets and ADO recordsets. This flexibility gives you the ability to pass all manner of items from one application to another. Of course, the down side is that both the sending and receiving application need to agree on the format of the message. So long as this is true, you can post almost anything your heart desires into a message.

You might also like...


About the author

Bruce Johnson Canada

I am the owner of a small application development consulting company that specialized in the design and implementation of Internet-based applications. While there are others who can make a web ...

Interested in writing for us? Find out more.


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There's no test like production” - Anon