摘要: 1. 调用 cmd 中的 ping 命令,分析输出信息来确定网络是否连接 1 //导入命名空间 2 using System.Net.NetworkInformation; 3 4 5 /// <summary> 6 /// Ping命令检测网络是否畅通 7 /// </summary> 8 /// 阅读全文
posted @ 2020-03-30 15:11 漫步代码的蜗牛 阅读(3394) 评论(0) 推荐(0)