在C#中怎么通过拼IP地址检测某台机器的网络连接是否畅通
在C#中如何通过拼IP地址检测某台机器的网络连接是否畅通
有没有源代码
------解决方案--------------------
try
{
IPHostEntry host = Dns.GetHostByAddress( this.textBox1.Text );
//通了
}
catch
{
//没通
}
有没有源代码
------解决方案--------------------
try
{
IPHostEntry host = Dns.GetHostByAddress( this.textBox1.Text );
//通了
}
catch
{
//没通
}