c# - Where are my System.Management.* classes? -
i installed visual studio 2010 .net framework 4.0 , c# , can't find under system.management
namespace except system.management.instrumentation
. online documentation @ msdn wmi keeps telling me have use classes such system.management.managementobjectsearcher
or system.management.managementscope
don't see classes.
what happened classes , how can access them?
you need add reference system.management.dll
project.
you can see system.management.instrumentation
without adding reference system.management.dll
because included in different library (system.core.dll
, included reference automatically), cannot access other types contained namespace without explicitly adding reference system.management.dll
library.
Comments
Post a Comment