Mono Class Library: System.UriBuilder Overview | Members

System.UriBuilder Constructor

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

public UriBuilder (string scheme, string host, int portNumber)

Parameters

scheme
A string containing the name of an Internet access protocol.
host
A string containing a DNS host name or IP address.
portNumber
A int containing an IP port number.

Exceptions

TypeReason
ArgumentOutOfRangeExceptionportNumber is less than zero.

Remarks

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

PropertyInitial value
Fragmentstring.Empty
Hosthost
Passwordstring.Empty
Path"/"
PortportNumber
Querystring.Empty
Schemescheme
UserNamestring.Empty

Requirements

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