Share via


Uri.IsWellFormedUriString Method

Indicates whether the string is well-formed by attempting to construct a URI with the string.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public static bool IsWellFormedUriString (
         stringuriString,
         UriKinduriKind
)

Parameters

  • uriString
    A URI.
  • uriKind
    The type of the URI in uriString.

Return Value

true if the string was well-formed in accordance with RFC 2396 and RFC 2732; otherwise false.

Version Information

Available in the .NET Micro Framework versions 4.0 and 4.1.

See Also

Reference

Uri Class
Uri Members
System Namespace