C#判断电脑是否处于联网状态

            Ping ping = new Ping();
            PingReply reply = ping.Send("119.75.218.45");//百度IP
            if(reply.Status == IPStatus.Success)
            {
                MessageBox.Show("已联网");
             }
             else
             {
                 MessageBox.Show("未联网");
              }

当前文章:C#判断电脑是否处于联网状态
标题来源:http://scyanting.com/article/igchch.html