Home > DeveloperSection > Forums > Why can't recognize ManagementObjectSearcher class in VS2010 C#?
Samuel Fernandes
Samuel Fernandes

Total Post:155

Posted on    October-22-2013 3:51 AM

 C# C# 

 1 Reply(s)
 5304  View(s)
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.

Royce Roy
Royce Roy

Total Post:134

Posted on    October-22-2013 4:08 AM

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-05-2016 03:35:44 AM

Don't want to miss updates? Please click the below button!

Follow MindStick