MaskedTextProvider.IsPassword 屬性

定義

取得或設定值,判斷密碼保護是否應套用至格式化字串。

public:
 property bool IsPassword { bool get(); void set(bool value); };
public bool IsPassword { get; set; }
member this.IsPassword : bool with get, set
Public Property IsPassword As Boolean

屬性值

如果輸入字串視為密碼字串,則為 true,否則為 false。 預設為 false

備註

您可以使用下列兩種方式之一來起始密碼保護:

IsPassword 和方法會使用 ToDisplayStringToString 方法來判斷是否要顯示實際的輸入字元,或使用 遮蔽它們 PasswordChar

適用於

另請參閱