예제 #1
0
 public static bool GetIsNetworkAvailable()
 {
     return(NetworkInterfacePal.GetIsNetworkAvailable());
 }
예제 #2
0
 /// <summary>
 /// Returns objects that describe the network interfaces on the local computer.
 /// </summary>
 /// <returns>An array of all network interfaces on the local computer.</returns>
 public static NetworkInterface[] GetAllNetworkInterfaces()
 {
     return(NetworkInterfacePal.GetAllNetworkInterfaces());
 }