Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 208
RY4N Avatar asked Aug 04 '11 07:08

RY4N


1 Answers

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.

like image 64
Mengo Avatar answered Oct 19 '22 23:10

Mengo