WP7 Wlan Definition (HOW I AM ONLINE)

Honestly, I'm a little lazy right now. I tried a 3 minute search, but I get a lot of things related to Windows7 and C #, not what I'm looking for. Its for a pet project anyway, so I just give it a try:

Is there any way to know HOW I am connected to the Internet in WP7?

Background: any application that is written for fun purposes, for example. application for sorting images. I want it to synchronize a lot of material with my server when I connect via WLAN (for example, 200 MB), but it should not do anything if I use my expensive GPRS connection ...

Thanks for any advice, actually RTFM with a good google search word would be a hit :-)

Chris

+5
source share
3 answers

I believe this answers your question

link:

The application must register for the NetworkAddressChanged event of the System.Net.NetworkInformation.NetworkChange class. When an event is received, the application can use the NetworkInterfaceType property to determine the current state of the connection.

+1
source

Check out this link :

The value from the NetworkInterfaceType enumeration identifying the network type. The value will be one of the following: Wireless80211 for Wi-Fi connection, MobileBroadband for cellular connection or No if no connection is available.

+3
source

, NetworkInterface:

if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable())
{
    return NetworkInterface.NetworkInterfaceType;
}
+3
source

All Articles