NetworkAddress Constructor
NetworkAddress(string, int)
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.  | 
    
| int | port | The port.  | 
    
NetworkAddress(IPAddress, int)
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.  | 
    
| int | port | The port.  |