Questions tagged [messageenumerator]

Provides a forward-only cursor to enumerate through messages in a message queue.

1 questions
6
votes
1 answer

with MessageEnumerator RemoveCurrent how do I know if I am at end of queue?

In MSMQ on .NET, I'm using a MessageEnumerator to look through all the messages in the queue. I want to remove messages that meet a certain condition. When I call MoveNext to step through the queue, I get back a boolean to tell me if the current…
Michael Levy
  • 13,097
  • 15
  • 66
  • 100