Click or drag to resize

DnsGetHostEntry(String) Method

Resolves a host name or IP address to an IPHostEntry instance.

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static IPHostEntry GetHostEntry(
	string hostNameOrAddress
)

Parameters

hostNameOrAddress  String
The host name or IP address to resolve.

Return Value

IPHostEntry
An IPHostEntry instance that contains address information about the host specified in hostNameOrAddress.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe hostNameOrAddress parameter is null.
ArgumentOutOfRangeExceptionThe length of hostNameOrAddress parameter is greater than 126 characters.
ArgumentExceptionThe hostNameOrAddress parameter is an invalid IP address
InvalidOperationExceptionAn error was encountered when resolving the hostNameOrAddress parameter

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also