Uri.IsBadFileSystemCharacter(Char) Method

Definition

Warning

This API is now obsolete.

获取一个值,该值指示字符是否在文件系统名称中无效。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. https://go.microsoft.com/fwlink/?linkid=14202")]
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")]
protected virtual bool IsBadFileSystemCharacter (char character);
[System.Obsolete("The method has been deprecated. It is not used by the system. https://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);
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

Parameters

character
Char

要测试的 CharThe Char to test.

Returns

Boolean

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

Attributes

Remarks

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

Applies to