PasswordBox.Clear Yöntem

Tanım

özelliğinin Password değerini temizler.

public:
 void Clear();
public void Clear ();
member this.Clear : unit -> unit
Public Sub Clear ()

Örnekler

Aşağıdaki örnek, yöntemiyle a'nın PasswordBox nasıl temiz yapılacağını Clear gösterir.

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()

Açıklamalar

özelliğinin Password değeri, bu yönteme yapılan bir çağrıdan sonradır Empty .

Şunlara uygulanır