Clear Method

PasswordBox.Clear Method ()


Clears the value of the Password property.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public void Clear()

The value of the Password property is Empty after a call to this method.

The following example shows how to clear a PasswordBox with the Clear method.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft