标签:try pad entry work net slist div mil foreach
///获取本地的IP地址 string AddressIP = string.Empty; foreach (IPAddress _IPAddress in Dns.GetHostEntry(Dns.GetHostName()).AddressList) { if (_IPAddress.AddressFamily.ToString() == "InterNetwork") { AddressIP = _IPAddress.ToString(); } }
标签:try pad entry work net slist div mil foreach
原文地址:http://www.cnblogs.com/xinyibufang/p/7245895.html