WHY CAN'T RECOGNIZE MANAGEMENTOBJECTSEARCHER CLASS IN VS2010 C#?

Samuel Fernandes

Total Post:159

Points:1117
Posted by  Samuel Fernandes
C# 
C#
 6462  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. Royce Roy

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

Answer

NEWSLETTER

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