NetworkInterface.GetIsNetworkAvailable Methode

Definitie

Geeft aan of er een netwerkverbinding beschikbaar is.

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

Retouren

true als er een netwerkverbinding beschikbaar is; anders, false.

Kenmerken

Opmerkingen

Een netwerkverbinding wordt beschouwd als beschikbaar als een netwerkinterface is gemarkeerd als 'up' en geen loopback- of tunnelinterface is.

Van toepassing op