Is Well Formed Original String Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether the string used to construct this Uri was well-formed and does not require further escaping.
public: bool IsWellFormedOriginalString();
public bool IsWellFormedOriginalString ();
member this.IsWellFormedOriginalString : unit -> bool
Public Function IsWellFormedOriginalString () As Boolean
true if the string was well-formed; otherwise,
The string is considered to be well-formed in accordance with RFC 2396 and RFC 2732 by default. If International Resource Identifiers (IRIs) or Internationalized Domain Name (IDN) parsing is enabled, the string is considered to be well-formed in accordance with RFC 3986 and RFC 3987
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 represents an implicit file Uri.||
|The string is an absolute URI that is missing a slash before the path.||
|The string contains unescaped backslashes even if they are treated as forward slashes.||
|The string represents a hierarchical absolute Uri and does not contain "://".||
|The parser for the Uri.Scheme indicates that the original string was not well-formed.||The example depends on the scheme of the URI.|
By default, the string used to construct this Uri are considered well-formed in accordance with RFC 2396 and RFC 2732.
When International Resource Identifier (IRI) and Internationalized Domain Name (IDN) support are enabled, the string used to construct this Uri are considered well-formed in accordance with RFC 3986 and RFC 3987. Punycode names used to support IRI contain only ASCII characters and always start with the xn-- prefix.
For more information on IRI support, see the Remarks section for the Uri class.