Search code examples
c#windowsmessage-queuemsmq

Pushing an entry to the start of an MSMQ


Is it possible to send an entry to the start of an MSMQ? Instead of it always being in the tail, we would instead push it to the head?


Solution

  • You can use MSMQMessage.Priority to affect the order in which messages are processed from a message queue. Eight priority levels are supported.

    A related SO question which discusses this is here.