PasswordBox::Password Property
.NET Framework (current version)
Gets or sets the password currently held by the PasswordBox.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: property String^ Password { [SecurityCriticalAttribute] String^ get(); [SecurityCriticalAttribute] void set(String^ value); }
Property Value
Type: System::String^A string representing the password currently held by the PasswordBox.
The default value is Empty.
When you get the Password property value, you expose the password as plain text in memory. To avoid this potential security risk, use the SecurePassword property to get the password as a SecureString.
Setting this property to null causes the underlying password to be set to Empty.
.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: