Saber se tem Internet

<< Click to Display Table of Contents >>

Navigation:  Rede e Internet >

Saber se tem Internet

Previous pageReturn to chapter overviewNext page

using System.Net.NetworkInformation;

 

if (NetworkInterface.GetIsNetworkAvailable())

  // yes we can!

else

  // no, we cant!