0

All,

I need to pass extra values apart from the Body of the MSMQMessage class, is there a way to do this ?

I understand that i can create a complex object and use that, but want to check if there are any other properties that i can use to pass few custom values on the MSMQmesasge class.

Thanks -Nen

nen
  • 621
  • 2
  • 10
  • 26

2 Answers2

1

How about using the message label as a small data store?

John Breakwell
  • 4,667
  • 20
  • 25
1

Just for the record, you can also use AppSpecific field, altough it's just an int.

Dejan Grujić
  • 402
  • 2
  • 6
  • What's your take on .extension property of the message queue class? – nen Mar 03 '15 at 00:41
  • 1
    Extension shares 4MB limit with Body. You can only access it as a byte array array from .Net, so you'll need some simple decoding if you need just single string or int. And it's not visible at all from Computer Management, you'll probably need some third party utility for debugging purposes. Apart from that, I don't see another reason not to use it if you need more than basic additional content. – Dejan Grujić Mar 03 '15 at 06:40