如何检查用户是否连接到互联网wp7?
如何检查用户是否已连接到互联网? 我有一个使用服务的程序,我想先检查一下,
谢谢
how do you check if the user is connected to the internet ?
ive a program that uses services and i'd like to check first
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如 http://www .diaryofaninja.com/blog/2010/12/09/checking-for-network-connectivity-in-windows-phone-7-sdk:
应该是正确的方法。
As seen on http://www.diaryofaninja.com/blog/2010/12/09/checking-for-network-connectivity-in-windows-phone-7-sdk:
Should be the correct way.
电话 api 没有互联网访问状态。尽管有各种状态,您仍需要实际拨打电话来测试它是否可用。请参阅检查的最佳方法是什么使用 .NET 连接互联网?
The phone api does not have a status for internet acces. You will need to actually make a call to test whether it's available despite the various statuses. See What is the best way to check for Internet connectivity using .NET?