摘要:
首先找到资源管理器里的引用,右击添加引用:System.Management; usingSystem; usingSystem.Management; namespaceConsoleApplication1 { classProgram { staticvoidMain(string[]args) { ManagementClassmc=newManagementClass("Win32_NetworkAdapterConfiguration"); ManagementObjectCollectionnics=mc.GetInstances(); foreach(ManagementObj 阅读全文