简体   繁体   中英

Why can't use ManagementObjectSearcher in VS2010 C#

I'm trying to use the code from this post: get com port number of an USB adapter

Then I got this message: why? 在此处输入图片说明

You have to add a reference to System.Management Manually through VS 2010.

  1. Right Click on Project, Add References

  2. Select the Assemblies Tab and Search for System.Management . Then Add Reference.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM