Constructs and initializes a new instance of the Uri class by parsing the specified URI.
- uriString
- A string containing a URI.
Type Reason ArgumentNullException uriString is null . UriFormatException uriString is a zero length string or contains only spaces.
-or-
uriString is in an invalid form and cannot be parsed.
This constructor is equivalent to calling the Uri (string, bool) constructor, and specifying uriString and false as the arguments.
Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0