Mono Class Library: System.Uri Overview | Members

System.Uri.IsExcludedCharacter Method

Returns a bool value that indicates whether the specified character is excluded from use or is unwise in URIs, as defined by IETF RFC 2396.

[System.Obsolete]
protected static bool IsExcludedCharacter (char ch)

Parameters

ch
A char containing the character to check.

Returns

true if the specified character is required to be escaped; otherwise, false .

Remarks

This method returns true for the following characters:

Character(s)Description
character < 0x0020 Any character with the ASCII value less than hexadecimal 0x20 (32).
character < 0x007fAny character with the ASCII value greater than hexadecimal 0x7f (127).
<Less than sign.
>Greater than sign.
# Number sign (crosshatch, pound sign).
%Percent.
"

Quotation mark.

{Left curly brace.
}Right curly brace.
|Pipe sign (vertical bar).
\ Backward slash.
^Circumflex (caret).
[Left square bracket.
]Right square bracket.
`Grave accent.

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0