Checks whether the host address is a valid hostname or IP address.

Namespace:  Rebex.Net
Assembly:  Rebex.Networking (in Rebex.Networking.dll)

Syntax

Visual Basic
Public Shared Function IsValidHost ( _
	host As String _
) As Boolean
C#
public static bool IsValidHost(
	string host
)

Parameters

host
Type: System..::..String
Host name or IP address.

Return Value

True if valid, false if otherwise.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also