Uri.IsBadFileSystemCharacter(Char) Uri.IsBadFileSystemCharacter(Char) Uri.IsBadFileSystemCharacter(Char) Uri.IsBadFileSystemCharacter(Char) Method

定义

警告

此 API 现已过时。

获取一个值,该值指示字符是否在文件系统名称中无效。Gets whether a character is invalid in a file system name.

protected:
 virtual bool IsBadFileSystemCharacter(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 IsBadFileSystemCharacter (char character);
abstract member IsBadFileSystemCharacter : char -> bool
override this.IsBadFileSystemCharacter : char -> bool
Protected Overridable Function IsBadFileSystemCharacter (character As Char) As Boolean

参数

character
Char Char Char Char

要测试的 CharThe Char to test.

返回

如果指定的字符无效,则为 true;否则为 falsetrue if the specified character is invalid; otherwise, false.

注解

根据 NTFS 文件系统的规则对字符进行分析。The character is analyzed according to the rules for the NTFS file system.

适用于