NetworkAddress Constructor
NetworkAddress(String, Int32)
Initializes a new instance of the NetworkAddress class with a hostname and a port.
Declaration
public NetworkAddress(string hostName, int port = 0)
Parameters
String | hostName | The hostname. |
Int32 | port | The port. |
NetworkAddress(IPAddress, Int32)
Initializes a new instance of the NetworkAddress class with an IP address and a port.
Declaration
public NetworkAddress(IPAddress ipAddress, int port = 0)
Parameters
IPAddress | ipAddress | The IP address. |
Int32 | port | The port. |