How to check if the user is connected to the internet wp7 ?

RY4N picture RY4N · Aug 4, 2011 · Viewed 7k times · Source

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

Answer

Mengo picture Mengo · Aug 4, 2011

As seen on http://www.diaryofaninja.com/blog/2010/12/09/checking-for-network-connectivity-in-windows-phone-7-sdk:

if (NetworkInterface.GetIsNetworkAvailable())
{ 

}

Should be the correct way.