摘要: foreach (System.Net.NetworkInformation.NetworkInterface f in System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()) { if (f.Operati 阅读全文
posted @ 2020-05-06 17:45 -H&H- 阅读(271) 评论(0) 推荐(0)
摘要: ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); ManagementObjectCollection moc = mc.GetInstances(); foreach (Management 阅读全文
posted @ 2020-05-06 17:43 -H&H- 阅读(371) 评论(0) 推荐(0)
摘要: //获取本地连接ip 掩码 网关 DNS NetworkInterface[] interfaces = NetworkInterface.GetAllNetworkInterfaces(); foreach (NetworkInterface bendi in interfaces) { if ( 阅读全文
posted @ 2020-05-06 17:41 -H&H- 阅读(488) 评论(0) 推荐(0)