Check for an internet connection

Namespace: Contracts
Assembly: Contracts (in Contracts.dll)

Public Shared Function CheckForInternetConnection() As Boolean
This language is not supported or no code example is available.
public static bool CheckForInternetConnection()
This language is not supported or no code example is available.
public:  
static bool CheckForInternetConnection()
This language is not supported or no code example is available.
public static function CheckForInternetConnection() : boolean;
This language is not supported or no code example is available.

Return Value

Type: bool

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1