PasswordBox.Clear メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Password プロパティの値をクリアします。
public:
void Clear();
public void Clear();
member this.Clear : unit -> unit
Public Sub Clear ()
例
次の例は、Clear メソッドを使用してPasswordBoxをクリアする方法を示しています。
PasswordBox pwdBox = new PasswordBox();
pwdBox.Password = "Open Sesame!";
// Clear any contents of the PasswordBox, as well as the value stored in the Password property.
pwdBox.Clear();
Dim pwdBox As New PasswordBox()
pwdBox.Password = "Open Sesame!"
' Clear any contents of the PasswordBox, as well as the value stored in the Password property.
pwdBox.Clear()
注釈
Password プロパティの値は、このメソッドの呼び出し後にEmptyされます。