1 using System.Diagnostics; 2 3 PerformanceCounter objCounter = new PerformanceCounter("MSMQ Queue", "Messages in Queue", @"mymachine\private$\MyQueue"); 4 5 int count = (int)(objCounter.NextValue());
1 using System.Diagnostics; 2 3 PerformanceCounter objCounter = new PerformanceCounter("MSMQ Queue", "Messages in Queue", @"mymachine\private$\MyQueue"); 4 5 int count = (int)(objCounter.NextValue());
转载于:https://www.cnblogs.com/xmyy/articles/3859838.html