NetworkInterface.GetIsNetworkAvailable NetworkInterface.GetIsNetworkAvailable NetworkInterface.GetIsNetworkAvailable NetworkInterface.GetIsNetworkAvailable Method

Definition

Indicates whether any network connection is available.

public:
 static bool GetIsNetworkAvailable();
public static bool GetIsNetworkAvailable ();
static member GetIsNetworkAvailable : unit -> bool
Public Shared Function GetIsNetworkAvailable () As Boolean
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.

Applies to