MaskedTextProvider.IsValidPasswordChar(Char) 方法
定义
确定指定的字符是否为有效的密码字符。Determines whether the specified character is a valid password character.
public:
static bool IsValidPasswordChar(char c);
public static bool IsValidPasswordChar (char c);
static member IsValidPasswordChar : char -> bool
Public Shared Function IsValidPasswordChar (c As Char) As Boolean
参数
返回
如果指定的字符包含有效的密码值,则为 true;否则为 false。true if the specified character contains a valid password value; otherwise false.
注解
有效的密码字符包括所有可打印的字符,以及用于禁用密码功能的 null 字符。Valid password characters include all printable characters and the null character, which is used to disable password functionality. 可打印字符包括字母、数字、标点、符号和空格字符。Printable characters include letters, digits, punctuation, symbols and the space character.