Wednesday, November 16, 2011

Check whether the Network is available in Windows Phone 7

If you want to check whether network is available, just use this
using System.Net.NetworkInformation;

bool netAvail = NetworkInterface.GetIsNetworkAvailable();
Note: It always return "true" in emulator, but return actual value in device.

No comments:

Post a Comment