摘要: using System.Net.NetworkInformation;public bool IsConnected(){Ping ping = new Ping ();PingReply reply = ping.Send("www.baidu.com");return (reply.Status == IPStatus.Success);} 阅读全文
posted @ 2013-07-12 14:03 zehrry 阅读(297) 评论(1) 推荐(0) 编辑