Share via


NetworkInterface.GetIsNetworkAvailable Methode

Definition

Gibt an, ob eine Netzwerkverbindung verfügbar ist.

public:
 static bool GetIsNetworkAvailable();
public static bool GetIsNetworkAvailable ();
[System.Runtime.Versioning.UnsupportedOSPlatform("illumos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("solaris")]
public static bool GetIsNetworkAvailable ();
static member GetIsNetworkAvailable : unit -> bool
[<System.Runtime.Versioning.UnsupportedOSPlatform("illumos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("solaris")>]
static member GetIsNetworkAvailable : unit -> bool
Public Shared Function GetIsNetworkAvailable () As Boolean

Gibt zurück

true, wenn eine Netzwerkverbindung verfügbar ist, andernfalls false.

Attribute

Hinweise

Eine Netzwerkverbindung gilt als verfügbar, wenn eine Netzwerkschnittstelle als "up" gekennzeichnet ist und keine Loopback- oder Tunnelschnittstelle ist.

Gilt für: