Walter.Net.Networking
CanPing(Uri) Method
Walter.Net.Networking Assembly > Walter.Net.Networking Namespace > LocalNetwork Class > CanPing Method : CanPing(Uri) Method
The DNS Name or IP address to validate
Will return true if the IPAaddress or DNS domain name could be accessed regardless of the fact that the server suppresses ping reply
Syntax
public static bool CanPing( 
   Uri IpAddressOrHostName
)

Parameters

IpAddressOrHostName
The DNS Name or IP address to validate

Return Value

True if pinging could or is possible
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

LocalNetwork Class
LocalNetwork Members
Overload List