Mono Class Library: System.Uri Overview | Members

System.Uri Constructor

Constructs and initializes a new instance of the Uri class by parsing the specified URI.

public Uri (string uriString)

Parameters

uriString
A string containing a URI.

Exceptions

TypeReason
ArgumentNullExceptionuriString is null .
UriFormatException

uriString is a zero length string or contains only spaces.

-or-

uriString is in an invalid form and cannot be parsed.

Remarks

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

Requirements

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