Click here to Skip to main content
15,896,456 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i defined system.object, system.management but still error coming in the code when i write

Dim mc as management class

the error coming is management class is not defined

please tell me the solution as early as possible
Posted

Add a reference to System.Management.dll, then make sure you imported the System.Management namespace at the top of your code file.
 
Share this answer
 
Import the appropriate namespace. This simple example[^] might help you get started.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900