Mono Class Library: System.Uri Overview | Members

System.Uri Constructor

Constructs and initializes a new instance of the Uri class by combining the specified base and relative URIs.

public Uri (Uri baseUri, string relativeUri)

Parameters

baseUri
A Uri containing a base URI.
relativeUri
A string containing a relative URI.

Exceptions

TypeReason
UriFormatExceptionrelativeUri is in an invalid form.
NullReferenceExceptionbaseUri is null.

Remarks

This constructor is equivalent to calling the Uri (Uri, string, bool) constructor, and specifying baseUri, relativeUri, and false as the arguments.

Requirements

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