NetworkInterface.GetIsNetworkAvailable Método

Definição

Indica se alguma conexão de rede está disponível.

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

Retornos

true se uma conexão de rede estiver disponível; caso contrário, false.

Atributos

Comentários

Uma conexão de rede será considerada disponível se qualquer interface de rede estiver marcada como "para cima" e não for uma interface de loopback ou túnel.

Aplica-se a