DotNetBrowser
1.21.5
|
Represents combination of host and port. More...
Public Member Functions | |
HostPortPair (string host, int port) | |
Constructs a new HostPortPair instance. More... | |
bool | HasPort () |
Gets a value indicating whether the port have a Value greater than 0. More... | |
Static Public Member Functions | |
static HostPortPair | FromString (string hostPort) |
Returns a HostPortPair value that corresponds to the specified string information. More... | |
Properties | |
string | Host [get] |
Gets string that represents host name. More... | |
string | HostPort [get] |
Gets string that represents combination of host and port. More... | |
int | Port [get] |
Gets integer that represents port number. More... | |
Represents combination of host and port.
DotNetBrowser.HostPortPair.HostPortPair | ( | string | host, |
int | port | ||
) |
Constructs a new HostPortPair instance.
host | string that represents host name. |
port | integer that represents port number. |
ArgumentException | when host is null or empty. |
ArgumentException | when port is less 0. |
|
static |
Returns a HostPortPair value that corresponds to the specified string information.
hostPort | string that represents combination of host and port. |
www.host.com:80
bool DotNetBrowser.HostPortPair.HasPort | ( | ) |
Gets a value indicating whether the port have a Value greater than 0.
|
get |
Gets string that represents host name.
|
get |
Gets string that represents combination of host and port.
|
get |
Gets integer that represents port number.