获取电脑的网络连接状态(五)WebClient

网络连接判断,使用WebClient测试获取: 1 public static bool IsWebClientConnected() 2 { 3 try 4 { 5 using (var client = new WebClient()) 6 using (var stream = client.
posted @ 2020-05-27 14:42  唐宋元明清2188  阅读(385)  评论(0编辑  收藏  举报