我一直在嘗試爲我的代碼使用WMI,我不能使用System.Management類,因爲它們不在那裏。我已經在3.5和4網上嘗試過了。什麼都沒有 我還沒有找到任何解決方案的問題,並想知道你是否曾經遇到過這個問題?如果是這樣,那爲什麼我只有:C#System.Management只有一個類?
System.Management.Instrumentation
我using
塊如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Management;
using System.IO;
using System.Security.Permissions;
using Microsoft.Win32;
using System.Collections;
using System.Management.Instrumentation;
信息:
的Visual Studio 2010旗艦版 使用net 3.5 - 淨4.
不知道我在這裏失蹤。
除了Jon Skeet說的之外,請確保您沒有使用客戶端配置文件。 –