找不到类型或命名空间名称”Management”

> 己经 using System.Management,调试时还是出现错误 :

找不到类型或命名空间名称”Management”(是否缺少 using 指令或程序集引用?)
还要在该项目中添加对其的引用,在解决方案文件上点右键-》添加引用
由于System.Management的动态链接库不是C#中默认加载的,所以要添加

System.Management的命名空间前要添加System.Management.dll链接库。依次选择:”项目”→”添加引用”→”.NET”菜单栏,加入System.Management。确认添加了动态链接库后添加命名空间:using System.Management;

This entry was posted in Program, Windows and tagged . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>