共用方式為


TextBox.Password 屬性

定義

取得或設定值,指出是否必須將輸入視為密碼,並在目標裝置上將字元加上遮罩。 預設值是 false。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

public:
 property bool Password { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(true)]
public bool Password { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(true)>]
member this.Password : bool with get, set
Public Property Password As Boolean

屬性值

如果必須將輸入視為密碼則為 true,否則為 false

屬性

備註

星號是用來遮罩密碼的典型字元。

注意

Password將屬性設定為 true 並不會加密或保護傳輸期間的密碼字串。

適用於

另請參閱