首页 > 代码库 > ManagementEventWatcher and System.Management

ManagementEventWatcher and System.Management


using System.Management;

Is not enough. 

You need to add the reference to System.Management too. 


In VS2015, go to the Solution Explorer, and expand your project, right click on the References folder/option and select Add References from the context menu. Now select the "Assemblies" tab , and select the "Framework",  and then enable the "System.Management" from the list and click OK.


本文出自 “MichaelMichael” 博客,请务必保留此出处http://michael999999.blog.51cto.com/10752903/1856450

ManagementEventWatcher and System.Management