How to determine the network connection in Windows Phone 7?

How to determine the network connection in Windows Phone 7? Is there a simple API for this?

+7
windows-phone-7 silverlight
source share
4 answers

I found: -P

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

Thanks guys, you pointed me in the right direction.

+13
source share

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

Checkout this blog for implementation details.

+1
source share

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

0
source share

Consider using NetworkInformation.DeviceNetworkInformation.IsNetworkAvailable

in Microsoft.Phone.Net namespace

0
source share

All Articles