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

Posted by  Samuel Fernandes
C# 
C#
 7499  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. 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