How to get MSMQ Message Id when a message is sent to the queue

Hi,

I would like to retrive MSMQ Message Id for a message whenever message is send to the queue. Send (message) method is being used.

Thanks & Regards,

kalai



Answer this question

How to get MSMQ Message Id when a message is sent to the queue

  • pigi76

    Use an instance of the System.Messaging.Message class. After calling Send(), you can use its Id property.


  • How to get MSMQ Message Id when a message is sent to the queue