向MSMQ发送消息时如何启用否定源日记功能? [英] How to enable negative source journaling while sending a message to MSMQ?

查看:54
本文介绍了向MSMQ发送消息时如何启用否定源日记功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过System.Messaging.MessageQueue(.NET)发送消息,并且消息不断消失.我见过有人建议启用否定源日记功能,但似乎无法找到实现方法.有人吗?

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?

推荐答案

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

简单为

这篇关于向MSMQ发送消息时如何启用否定源日记功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆