편집

다음을 통해 공유


NetworkReachability Constructors

Definition

Overloads

NetworkReachability(IPAddress)

Creates a network reachability class based on an IP address.

NetworkReachability(String)

Creates a network reachability object from a hostname.

NetworkReachability(IPAddress, IPAddress)

Creates a network reachability object from a local IP address and a remote one.

NetworkReachability(IPAddress)

Creates a network reachability class based on an IP address.

public NetworkReachability (System.Net.IPAddress ip);
new SystemConfiguration.NetworkReachability : System.Net.IPAddress -> SystemConfiguration.NetworkReachability

Parameters

ip
IPAddress

The IP address. Only IPV4 is supported.

Remarks

In addition to probing general hosts on the Internet, you can detect the ad-hoc WiFi network using the IP address 169.254.0.0 and the general network availability with 0.0.0.0.

Applies to

NetworkReachability(String)

Creates a network reachability object from a hostname.

public NetworkReachability (string address);
new SystemConfiguration.NetworkReachability : string -> SystemConfiguration.NetworkReachability

Parameters

address
String

A host name.

Remarks

The hostname is resolved using the current DNS settings.

Applies to

NetworkReachability(IPAddress, IPAddress)

Creates a network reachability object from a local IP address and a remote one.

public NetworkReachability (System.Net.IPAddress localAddress, System.Net.IPAddress remoteAddress);
new SystemConfiguration.NetworkReachability : System.Net.IPAddress * System.Net.IPAddress -> SystemConfiguration.NetworkReachability

Parameters

localAddress
IPAddress

Local address to monitor, this can be null if you are not interested in the local changes.

remoteAddress
IPAddress

Remote address to monitor, this can be null if you are not interested in the remote changes.

Remarks

Applies to