Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I detect network connectivity in Windows Phone 7?

How can I detect network connectivity in Windows Phone 7? Is there a simple API for that?

like image 257
Jamey McElveen Avatar asked Sep 15 '10 13:09

Jamey McElveen


People also ask

How to check connectivity in network?

Select the Start button, then type settings. Select Settings > Network & internet. The status of your network connection will appear at the top. Windows 10 lets you quickly check your network connection status.


2 Answers

I found it :-P

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

Thanks guys you pointed me in the right direction.

like image 74
Jamey McElveen Avatar answered Oct 26 '22 06:10

Jamey McElveen


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

Checkout this blog for implementation details.

like image 22
Vinay B R Avatar answered Oct 26 '22 08:10

Vinay B R