Delete one MSMQ message

Is it possible to delete one message from the MSMQ message queue? I have a Queue object, a message (object) that I received, looking in and a message identifier, I see a way to delete (or clear) the entire queue, but I see no way to delete a message on it, I tried to receive the message as soon as I found him, peeping, but I get the error message "cursor is invalid"

Any help gratefully received

+4
source share
3 answers

Are you trying to use MessageQueue.ReceiveById ?

+8
source

You can try QueueExplorer .

+2
source

Use one of the receive functions. Depending on your language / technology (c, com, .net).

For .net, this will be the MessageQueue.ReceiveById method. Or anyone that suits you. Depending on the message you want to delete (first, the last using the cursor or id).

0
source

All Articles