开发者

How can I detect network connectivity in Windows Phone 7?

开发者 https://www.devze.com 2023-01-16 10:39 出处:网络
How can I detect network connectivity in开发者_StackOverflow社区 Windows Phone 7? Is there a simple API for that?I found it :-P

How can I detect network connectivity in开发者_StackOverflow社区 Windows Phone 7? Is there a simple API for that?


I found it :-P

System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable();

Thanks guys you pointed me in the right direction.


Try NetworkChange.NetworkAddressChange event in System.Net.NetworkInformation namesapce.

Checkout this blog for implementation details.


It's available in the System.Net.NetworkInformation.NetworkInterface class as provided the below link http://msdn.microsoft.com/en-us/library/system.net.networkinformation.networkinterface.aspx


Consider using NetworkInformation.DeviceNetworkInformation.IsNetworkAvailable

in Microsoft.Phone.Net namespace

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号