UriBuilder Constructor (String)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the UriBuilder class with the specified URI.
Assembly: System (in System.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | uri is null. |
| UriFormatException | uri is a zero length string or contains only spaces. -or- The parsing routine detected a scheme in an invalid form. -or- The parser detected more than two consecutive slashes in a URI that does not use the "file" scheme. -or- uri is not a valid URI. |
Show: