C#判断电脑是否处于联网状态
时间:2016-10-09 20:39:09
收藏:0
阅读:235
Ping ping = new Ping(); PingReply reply = ping.Send("119.75.218.45");//百度IP if(reply.Status == IPStatus.Success) { MessageBox.Show("已联网"); } else { MessageBox.Show("未联网"); }
原文:http://12148364.blog.51cto.com/12138364/1859904
评论(0)