摘要:
foreach (System.Net.NetworkInformation.NetworkInterface f in System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()) { if (f.Operati 阅读全文
摘要:
ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); ManagementObjectCollection moc = mc.GetInstances(); foreach (Management 阅读全文
摘要:
//获取本地连接ip 掩码 网关 DNS NetworkInterface[] interfaces = NetworkInterface.GetAllNetworkInterfaces(); foreach (NetworkInterface bendi in interfaces) { if ( 阅读全文