System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable Method

Indicates whether any network connection is available.

Syntax

[System.MonoTODO("Always returns true")]
public static bool GetIsNetworkAvailable ()

Returns

true if a network connection is available; otherwise, false.

Remarks

A network connection is considered to be available if any network interface is marked "up" and is not a loopback or tunnel interface.

Requirements

Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0