Anyone know about the System.Management namespace or WMI development? RRS feed

  • Question

  • Just look at such a simple example:

          ManagementObject disk = new ManagementObject("win32_logicaldisk.deviceid=\"c:\"");
    "Disk size: "+disk["Size"]+"bytes");

    I just don't under stand why the constructor of ManagementObject is something above, and I do not know that why the indexer property of the instance "disk" is "Size", and what else propery it could have.

    Anyone can help me ?

    Monday, September 1, 2008 3:35 AM