PasswordBox.Clear Methode

Definitie

Hiermee wist u de waarde van de Password eigenschap.

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

Voorbeelden

In het volgende voorbeeld ziet u hoe u een PasswordBox met de Clear methode wist.

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

Opmerkingen

De waarde van de Password eigenschap is Empty na een aanroep naar deze methode.

Van toepassing op