Why can't recognize ManagementObjectSearcher class in VS2010 C#?

Total Post:159

Points:1117
C# 
C#
 6931  View(s)
Ratings:
Rate this:

I am creating an C# application which is provide me all connected USB device of my computer and for that I need the class of ManagementObjectSearcher class but why VS2010 is not recognize this class.

  1. Post:149

    Points:1043
    Re: Why can't recognize ManagementObjectSearcher class in VS2010 C#?

    You need to add reference of   System.Management  Manually through VS 2010.

    •     Right Click on Project.
    •     Select Add References.
    •   Select the Assemblies Tab and Search for System.Management . Then Add Reference.

      Modified On Apr-03-2018 05:42:47 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!