DotNetBrowser  1.14
Public Member Functions | Static Public Member Functions | Properties | List of all members
DotNetBrowser.HostPortPair Class Reference

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...
 

Detailed Description

Represents combination of host and port.

Constructor & Destructor Documentation

DotNetBrowser.HostPortPair.HostPortPair ( string  host,
int  port 
)

Constructs a new HostPortPair instance.

Parameters
hoststring that represents host name.
portinteger that represents port number.
Exceptions
ArgumentExceptionwhen host is null or empty.
ArgumentExceptionwhen port is less 0.

Member Function Documentation

static HostPortPair DotNetBrowser.HostPortPair.FromString ( string  hostPort)
static

Returns a HostPortPair value that corresponds to the specified string information.

Parameters
hostPortstring that represents combination of host and port.

www.host.com:80

Returns
represents combination of host and port.
bool DotNetBrowser.HostPortPair.HasPort ( )

Gets a value indicating whether the port have a Value greater than 0.

Returns

Property Documentation

string DotNetBrowser.HostPortPair.Host
get

Gets string that represents host name.

string DotNetBrowser.HostPortPair.HostPort
get

Gets string that represents combination of host and port.

int DotNetBrowser.HostPortPair.Port
get

Gets integer that represents port number.