检查网络是否可以连接互联网
来源:互联网 发布:数据产品经理书籍推荐 编辑:程序博客网 时间:2024/04/27 00:09
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime;
using System.Runtime.InteropServices;
namespace SmsSoft
{
public class CheckInternetConnection
{
/// <summary>
/// 用于检查网络是否可以连接互联网,true表示连接成功,false表示连接失败
/// </summary>
/// <returns></returns>
[DllImport("wininet.dll")]
private extern static bool InternetGetConnectedState(int Description, int ReservedValue);
public static bool CheckConnection()
{
int Description = 0;
return InternetGetConnectedState(Description, 0);
}
}
}
- 检查网络是否可以连接互联网
- Android检查设备是否可以访问互联网,判断Internet连接,测试网络请求,解析域名
- android ;检查网络是否可以连接
- 检查网络是否连接
- 检查网络是否连接
- 检查网络是否连接正常
- 检查是否连接到网络
- iOS检查网络是否连接
- 检查3G网络是否连接
- iOS检查网络是否连接
- Android检查网络是否连接
- 检查网络连接是否可用
- 检查网络是否连接正常
- Netstate检查网络是否连接
- Android检查Internet是否可以正常连接
- Android检查Internet是否可以正常连接
- android 检查网络是否连接了
- C#检查网络是否连接的方法
- mysql存储引擎:InnoDB和MyISAM的差别/优劣评价/评测/性能测试
- 转:Linux 系统信息查看命令大全
- 五种开源协议的比较(BSD,Apache,GPL,LGPL,MIT)
- Glassfishv3 domain管理1
- 知行合一难在哪
- 检查网络是否可以连接互联网
- Poj 树状数组
- Qt标准对话框之QColorDialog
- vs2010 rdlc .net4.0 卸载 Appdomain 时出错。 (异常来自 HRESULT:0x80131015) 解决办法
- HTTP协议header头域
- 软件工程思维导图
- 一个封装的jacob类
- Android Widget画面转屏后失去自动刷新效果
- svn apache 安装 权限设置