System.Uri.IsReservedCharacter Method

Gets whether the specified character is a reserved character.

Syntax

[System.Obsolete]
protected virtual bool IsReservedCharacter (char character)

Parameters

character
The char to test.

Returns

A bool value that is true if the specified character is a reserved character otherwise, false.

Remarks

The following characters are reserved for the use in URI:

CharacterDescription
;Semi-colon.
/ Forward slash.
:Colon.
@At sign (commercial at).
&Ampersand.
=Equals sign.
+Plus sign.
$US Dollar sign.
,Comma.

Operation
As described above.

Note to Inheritors
Override this method to customize the escaping behavior provided by the Uri type.

Usage
Use this method to determine if a character is reserved.

Requirements

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