PerformanceCounter Class:
using System;
using System.Diagnostics;
class app
{
static void Main ()
{
var pc = new PerformanceCounter ("Memory", "Available MBytes");
Console.WriteLine ("Available RAM : {0}", pc.RawValue);
}
}
This works but I could not find a list of the valid Categories and Items to get other information I wanted. I did find the C# doc on the class and the members but it did not have that level of detail.
This was the closest. Others I found were for classes that are now obsolete.
If you know another class or how to get the enumeration for the categories and items of this class?
I can get some basics from the Environment Class, but not much about the hardware.
Thanks for the reply.