Indicates whether the string is well-formed by attempting to construct a Uri with the string and ensures that the string does not require further escaping.
Assembly: System (in System.dll)
- Type: System.UriKind
The type of the URI in uriString parameter.
The string is considered poorly formed, causing the method to return false, if any of the following conditions occur
The string is not correctly escaped.
The string is an absolute URI that is missing a slash before the path.
The string contains unescaped backslashes even if they will be treated as forward slashes
The string represents a hierarchical absolute Uri and does not contain "://"
The parser for the Scheme indicates that the original string was not well-formed.
The example depends on the scheme of the URI.
For more information, see RFC 2396, RFC 2732, and RFC 3986 available at http://www.ietf.org.
A uriString can be poorly formed and can still be used to construct a Uri instance. The Silverlight runtime will try to correct some minor issues with a poorly-formed string when the string is passed to one of the constructors for Uri.
The Uri constructors allow a Silverlight application to create a Uri instance for many schemes as described in the Scheme property. However, only Uri instances for the UriSchemeHttp or UriSchemeHttps schemes are supported by the WebClient and HTTP classes in the System.Net namespace.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.