使用WMI时库应该使用什么

时间:2012-09-27 05:38:32

标签: c# visual-studio-2008 wmi

我正在使用Visual Studio 2008.使用WMI时应该使用哪些库。我导入了许多库,但它们不起作用

ConnectionOptions options = new ConnectionOptions();

我正在使用这些Namespaces

using System.Management;
using System.Security;

1 个答案:

答案 0 :(得分:0)

您可能还想添加对System.Management的引用。

请在此MSDN 文章中找到更多相关信息:

有人遇到类似问题,并通过添加对dll的引用来解决此问题。