【发布时间】:2014-04-29 13:59:08
【问题描述】:
我正在使用System.Data PerfomanceCounter 类,我发现了一些关于如何检索磁盘空间或 CPU 使用率的非常具体的示例。
但是我无法找到关于以下可能值的文档:
PerfomanceCounter.CategoryName
PerformanceCounter.CounterName
PerformanceCounter.InstanceName
I can see from the class the different parameters 我可以传递给构造函数,但即使转到 the page for say CategoryName 也不会给我可用值的列表。
任何人都可以就如何找到这些可用值提供建议和建议吗?
谢谢!
【问题讨论】:
标签: c# parameters performancecounter