标签:conf div enable led class ctc search break 自动获取
ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); ManagementObjectCollection moc = mc.GetInstances(); foreach (ManagementObject mo in moc) { if (!(bool)mo["IPEnabled"]) continue; mo.InvokeMethod("SetDNSServerSearchOrder", null); mo.InvokeMethod("EnableStatic", null); mo.InvokeMethod("SetGateways", null); mo.InvokeMethod("EnableDHCP", null); break; }
标签:conf div enable led class ctc search break 自动获取
原文地址:https://www.cnblogs.com/xinzheng/p/12837832.html