Message Count from Queue

  • Thread starter Thread starter Reshma Prabhu
  • Start date Start date
R

Reshma Prabhu

Hello,

Could any one please give me a sample code to count the number of
messages in a queue using C# and the .NET environment without using
Performance counters.

Thanks,
Reshma
 
Hmm... maybe sounds silly, but one way of doing it would be to simply use a
messageEnumerator and loop through all the messages, thus counting them.

Regards,

Sigmund
 
Back
Top