c#获取本机IP,机器名,然后是操作系统版本
string hostname = System.Net.Dns.GetHostName();
System.Net.IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(hostname);
dr["NodeIP"] = ipEntry.AddressList[0].ToString();
dr["NodeName"] = hostname;
dr["NodeOSDesc"] = System.Environment.OSVersion.VersionString;
System.Net.IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(hostname);
dr["NodeIP"] = ipEntry.AddressList[0].ToString();
dr["NodeName"] = hostname;
dr["NodeOSDesc"] = System.Environment.OSVersion.VersionString;