Our application downloads data from the internet using RSS but is having connection problems on machines connecting with 3G. We’d like to detect 3G,EDGE,GPRS connections so that we can change the application behaviour, display warnings or status of connection.
How would this be done?
The
NetworkInterfaceclass in theSystem.Net.NetworkInformationnamespace should be of some use to you (more specifically, theGetAllNetworkInterfacesmethod. An example is shown on the linked MSDN page that demonstrates how to get the type, address, operational status, and other information about every network interface.Reduced version of MSDN example: