Walter.Net.Networking
TryQueryHostEntry Method
Walter.Net.Networking Assembly > Walter.Net.Networking Namespace > DnsManager Class : TryQueryHostEntry Method
Name of the IP address or host.
The host entry (will be empty if not found)
Queries the host entry and validates if it can be found.
Syntax
public static bool TryQueryHostEntry( 
   string ipAddressOrHostName,
   out IPHostEntry entry
)

Parameters

ipAddressOrHostName
Name of the IP address or host.
entry
The host entry (will be empty if not found)

Return Value

true if found, false otherwise.
Exceptions
ExceptionDescription
The parameter ipAddressOrHostName cannot be null or whitespace - ipAddressOrHostName
Remarks
This data is not cashed. If you expect the data to stay the same use the instantiated DnsManager's method GetHostEntry.
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

DnsManager Class
DnsManager Members