标签:
using System.Diagnostics;
PerformanceCounter objCounter = new PerformanceCounter("MSMQ Queue", "Messages in Queue", @"mymachine\private$\MyQueue");
int count = (int)(objCounter.NextValue());
mssql数量
原文地址:http://www.cnblogs.com/wcLT/p/4331543.html