NetworkInterface.GetIsNetworkAvailable Metod

Definition

Anger om någon nätverksanslutning är tillgänglig.

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

Returer

trueom en nätverksanslutning är tillgänglig. annars . false

Attribut

Kommentarer

En nätverksanslutning anses vara tillgänglig om något nätverksgränssnitt är markerat "upp" och inte är ett loopback- eller tunnelgränssnitt.

Gäller för