Initializes a new instance of the HostEndpoint class with the specified host and port.

Namespace: ININ.IceLib.Connection
Assembly: ININ.IceLib (in ININ.IceLib.dll) Version: 0.0.0.0 (22.3.0.218)

Syntax

C#
public HostEndpoint(
	string host,
	int port
)
Visual Basic
Public Sub New ( _
	host As String, _
	port As Integer _
)

Parameters

host
Type: System..::..String
The host to connect to.
port
Type: System..::..Int32
The port to connect with.

Remarks

The host will attempt to be parsed for the [host]:[port] format. If the port is not found in this format, it will be set by the port parameter.

Exceptions

ExceptionCondition
System..::..ArgumentExceptionThe host parameter string is empty.
System..::..ArgumentNullExceptionThe host parameter string is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::..ArgumentOutOfRangeExceptionThe port parameter is less than 1 or greater than 65535.

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 3.0, supported for IC Server version 3.0 GA and beyond.

See Also