Converts the host address and port into an IP endpoint. If the host address is not an IP address, returns null.

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

Syntax

Visual Basic
Public Shared Function ToEndPoint ( _
	host As String, _
	port As Integer _
) As IPEndPoint
C#
public static IPEndPoint ToEndPoint(
	string host,
	int port
)

Parameters

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

Return Value

IP endpoint.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also