Mono Class Library: System.UriBuilder Overview | Members

System.UriBuilder.ToString Method

Returns the escaped form of the URI represented by the current instance.

public override string ToString ()

Returns

A string containing the escaped URI contained in the current UriBuilder instance.

Remarks

The string returned by this method (shown here as uriString) is constructed as follows:

uriString = scheme + scheme delimiter + host.
If port != -1 and host != "", then uriString = uriString + ":" + port.
If host != "" and path != "" and path != "/", then uriString = uriString + "/".
uriString = uriString + path.
If fragment != "", then uriString = uriString + fragment, else uriString = uriString + query.

Note: This method overrides object.ToString.

Requirements

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