Skip to content

PasswordBox.Password property

Gets or sets the password text.

public string Password { get; set; }

The value is stored as a plain (unencrypted) string. Clear it manually after use (e.g., passwordBox.Password = string.Empty;) to minimize exposure in memory.

Fluent: .Password(String)