UriBuilder Constructor (String)
Silverlight
Initializes a new instance of the UriBuilder class with the specified URI.
Namespace: System
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. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.