博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C#中通过WMI的Win32_Processor对象获取CPU信息简介
阅读量:4185 次
发布时间:2019-05-26

本文共 943 字,大约阅读时间需要 3 分钟。

1、简介

      在WMI中,通过Win32_Processor对象可以获取磁盘驱动器的相关信息:

      ManagementClass mc = new ManagementClass("Win32_Processor");
      ManagementObjectCollection moc = mc.GetInstances();
      foreach (ManagementObject mo in moc)
      {
            propertyInfo = mo.Properties[PropertyName].Value.ToString();
      }

2、属性

     Win32_Processor对象的属性信息如下:

     AddressWidth

     Architecture
     Availability
     Caption
     ConfigManagerErrorCode
     ConfigManagerUserConfig
     CpuStatus
     CreationClassName
     CurrentClockSpeed
     CurrentVoltage
     DataWidth
     Description
     DeviceID
     ErrorCleared
     ErrorDescription
     ExtClock
     Family
     InstallDate
     L2CacheSize
     L2CacheSpeed
     L3CacheSize
     L3CacheSpeed
     LastErrorCode
     Level
     LoadPercentage
     Manufacturer
     MaxClockSpeed
     Name
     NumberOfCores
     NumberOfLogicalProcessors
     OtherFamilyDescription
     PNPDeviceID
     PowerManagementCapabilities
     PowerManagementSupported
     ProcessorId
     ProcessorType
     Revision
     Role
     SocketDesignation
     Status
     StatusInfo
     Stepping
     SystemCreationClassName
     SystemName
     UniqueId
     UpgradeMethod
     Version
     VoltageCaps

转载地址:http://lqdoi.baihongyu.com/

你可能感兴趣的文章
Oracle Net Manager的使用及配置
查看>>
镜像文件
查看>>
苹果笔记本桌面下面的工具栏没了怎么调出来
查看>>
CSS原理与CSS经验分享
查看>>
oracle中int与number的区别
查看>>
php不用jsonp也能跨域
查看>>
solr作为一种开源的搜索服务器
查看>>
Pig分析数据过程
查看>>
linux下文件夹的创建、复制、剪切、重命名、清空和删除命令
查看>>
pentaho套件
查看>>
软件产品经理职责
查看>>
Linux下Tomcat的安装配置
查看>>
UI即User Interface
查看>>
大数据要学习知识
查看>>
Elasticsearch Java API总汇
查看>>
SearchRequestBuilder常用方法说明
查看>>
为什么有的程序员的代码结构混乱
查看>>
查看数据库
查看>>
SQLite 数据库
查看>>
行业应用
查看>>