Uri.IsReservedCharacter(Char) Uri.IsReservedCharacter(Char) Uri.IsReservedCharacter(Char) Uri.IsReservedCharacter(Char) Method

定义

警告

此 API 现已过时。

获取一个值,该值指示指定的字符是否为保留字符。Gets whether the specified character is a reserved character.

protected:
 virtual bool IsReservedCharacter(char character);
[System.Obsolete("The method has been deprecated. It is not used by the system. http://go.microsoft.com/fwlink/?linkid=14202")]
[System.Obsolete("The method has been deprecated. It is not used by the system. https://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual bool IsReservedCharacter (char character);
abstract member IsReservedCharacter : char -> bool
override this.IsReservedCharacter : char -> bool
Protected Overridable Function IsReservedCharacter (character As Char) As Boolean

参数

character
Char Char Char Char

要测试的 CharThe Char to test.

返回

一个 Boolean 值。如果指定的字符是保留字符,则该值为 true;否则为 falseA Boolean value that is true if the specified character is a reserved character otherwise, false.

适用于