Class NetworkConnectivity
Inheritance
System.Object
NetworkConnectivity
Assembly: SensusiOS.dll
Syntax
public static class NetworkConnectivity : Object
Fields
HostName
Declaration
public static string HostName
Field Value
Type |
Description |
System.String |
|
Methods
InternetConnectionStatus()
Declaration
public static NetworkStatus InternetConnectionStatus()
Returns
IsAdHocWiFiNetworkAvailable(out NetworkReachabilityFlags)
Declaration
public static bool IsAdHocWiFiNetworkAvailable(out NetworkReachabilityFlags flags)
Parameters
Type |
Name |
Description |
SystemConfiguration.NetworkReachabilityFlags |
flags |
|
Returns
Type |
Description |
System.Boolean |
|
IsHostReachable(String)
Declaration
public static bool IsHostReachable(string host)
Parameters
Type |
Name |
Description |
System.String |
host |
|
Returns
Type |
Description |
System.Boolean |
|
IsReachableWithoutRequiringConnection(NetworkReachabilityFlags)
Declaration
public static bool IsReachableWithoutRequiringConnection(NetworkReachabilityFlags flags)
Parameters
Type |
Name |
Description |
SystemConfiguration.NetworkReachabilityFlags |
flags |
|
Returns
Type |
Description |
System.Boolean |
|
LocalWifiConnectionStatus()
Declaration
public static NetworkStatus LocalWifiConnectionStatus()
Returns
RemoteHostStatus()
Declaration
public static NetworkStatus RemoteHostStatus()
Returns
Events
ReachabilityChanged
Declaration
public static event EventHandler ReachabilityChanged
Event Type
Type |
Description |
System.EventHandler |
|