Mono Class Library: System.UriBuilder Overview | Members

System.UriBuilder Constructor

Constructs and initializes a new instance of the UriBuilder class with the specified scheme and host.

public UriBuilder (string schemeName, string hostName)

Parameters

schemeName
A string containing the name of an Internet access protocol.
hostName
A string containing a DNS host name or IP address.

Remarks

This constructor creates a new instance of the UriBuilder class with its properties initialized as follows:

PropertyInitial value
Fragmentstring.Empty
HosthostName
Passwordstring.Empty
Path"/"
Port-1
Querystring.Empty
SchemeschemeName
UserNamestring.Empty
Note: UriBuilder.Port is initialized to the value -1 to indicate the default port for the scheme should be used.

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0