获取电脑的网络连接状态(三)Ping

网络连接判断,使用ping测试获取: 1 private static async Task<bool> IsPingSuccess() 2 { 3 try 4 { 5 using (Ping myPing = new Ping()) 6 { 7 var result = await myPing.
posted @ 2020-05-27 14:40  唐宋元明清2188  阅读(386)  评论(0编辑  收藏  举报