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

Gibt zurück

truewenn eine Netzwerkverbindung verfügbar ist; andernfalls . false

Attribute

Hinweise

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

Gilt für: