System.Uri.IsExcludedCharacter Method

Gets whether the specified character should be escaped.

Syntax

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

Parameters

character
The char to test.

Returns

A bool value that is true if the specified character should 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, 4.0.0.0