Share via


IsWellFormedUriString Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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.

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

Syntax

'Declaration
Public Shared Function IsWellFormedUriString ( _
    uriString As String, _
    uriKind As UriKind _
) As Boolean
public static bool IsWellFormedUriString(
    string uriString,
    UriKind uriKind
)
public:
static bool IsWellFormedUriString(
    String^ uriString, 
    UriKind uriKind
)
static member IsWellFormedUriString : 
        uriString:string * 
        uriKind:UriKind -> bool 
public static function IsWellFormedUriString(
    uriString : String, 
    uriKind : UriKind
) : boolean

Parameters

Return Value

Type: System. . :: . .Boolean
A Boolean value that is true if the string was well-formed; else false.

Remarks

By default, the string is considered well-formed in accordance with RFC 2396 and RFC 2732. If International Resource Identifiers (IRIs) or Internationalized Domain Name (IDN) parsing is enabled, the string is considered well-formed in accordance with RFC 3986 and RFC 3987.

.NET Framework Security

See Also

Reference

Uri Class

System Namespace