Export (0) Print
Expand All

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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft