ManagementObject Class not showing up in System.Management namespace

前端 未结 7 1234
陌清茗
陌清茗 2020-12-28 11:53

I\'m trying to write some WMI in my windows form and the ManagementObject is givin me the

\"The type or namespace name \'ManagementObject\' could not be found\" Err

7条回答
  •  忘掉有多难
    2020-12-28 12:20

    Right-click References on the right and manually add System.Management. Even though I included it in the using statement I still had to do this. Once I did, all worked fine.

提交回复
热议问题