由网友(姑娘你没有倒下的理由)分享简介:时有任何选项从MSMQ删除邮件已读后?Is there is any option to remove a message from MSMQ after it has been read?像,接收+删除可以运行的原子操作?Like, a receive + delete can run as atomic op...
时有任何选项从MSMQ删除邮件已读后?
Is there is any option to remove a message from MSMQ after it has been read?
像,接收+删除可以运行的原子操作?
Like, a receive + delete can run as atomic operation?
推荐答案
这听起来像你想查看下一个邮件,然后接受它,你就完蛋了处理之后。
It sounds like you want to peek at the next message and then receive it after you're finished processing.
Message message = Queue.Peek();
Queue.ReceiveById(message.Id);
相关推荐
最新文章