I'm developing one software for which i want to check whether that PC which uses my software that having internet connectivity for required purpose. Means i'm using webservices & that webservices run on the admin side which is on the remote machine by using which i'm allowing user to access remote database. And it should work for all type of internet connectivity like LAN, WiFi, Dialup or whatever the user is using.
How to do this?
I want one favor from all of you.. if i used the following code then whether it will fulfill my all requirement or not ?
using Microsoft.VisualBasic.Devices;
Computer oComputer = new Computer();
if (oComputer.Network.IsAvailable == true)
{
MessageBox.Show("Internet connection available");
}
else
{
MessageBox.Show("Internet connection not available");
}
thanks.