Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete Single Message MSMQ

Tags:

.net

vb.net

msmq

Is it possible to delete a single message from a MSMQ message queue ? I have a Queue object, a message (object) that I have got to by peeking and the ID of the message, I can see a way of deleting (or purging) the entire queue, but I can't see a way to delete the message on it's own, I've tried receiving the message once I have found it by peeking, but I get the error that "the cursor is invalid"

Any help gratefully received

like image 961
spacemonkeys Avatar asked Jan 20 '09 22:01

spacemonkeys


1 Answers

Are you trying to use MessageQueue.ReceiveById?

like image 52
Abtin Forouzandeh Avatar answered Oct 07 '22 20:10

Abtin Forouzandeh