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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -