Skip to main content
 首页 » 编程设计

c#之ManagementObject.GetMethodParameters 方法的可能值

2024年02月24日29jpfss

我只知道其中一些,例如“CreateVirtualDirectory”和“SetDatabaseConnection”等,但是我在哪里可以获得 ManagementObject.GetMethodParameters 方法的所有可能值(方法名称)的列表?

谢谢。

请您参考如下方法:

ManagementClass.Methods 属性返回它们,MSDN Library topic 中有一个很好的例子

你找到WMI Code Creator了吗?实用了吗?非常非常方便地测试查询并自动生成您需要的 C# 代码。