How to enable negative source journaling while sending a message to MSMQ?

十年热恋 提交于 2019-12-08 17:19:21

问题


I'm trying to send a message through System.Messaging.MessageQueue (.NET) and the message keeps on disappearing. I've seen people recommending enabling negative source journaling, but can't seem to find out how this is done. Anyone?


回答1:


Message m = new Message();
m.UseDeadLetterQueue = true;

Simple as.



来源:https://stackoverflow.com/questions/12937306/how-to-enable-negative-source-journaling-while-sending-a-message-to-msmq

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!