tags:

views:

161

answers:

1

Using COM you can get the MessageCount property of a queue. I can achieve the same thing with the MSMQ.Interop, but I was wondering if there is any way to do this with a pure dotNet approach?

A: 

Sure, using WMI: Select * From Win32_PerfRawData_MSMQ_MSMQQueue

lod3n