connect network C# code example Example: check if network is available c# System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()