MaskedTextProvider.IsPassword Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value that determines whether password protection should be applied to the formatted string.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public bool IsPassword { get; set; }

Property Value

Type: System.Boolean

true if the input string is to be treated as a password string; otherwise, false. The default is false.

Password protection can be initiated using one of the following two ways:

IsPassword is used by the ToDisplayString and ToString methods to determine whether to reveal the actual input characters or obscure them with PasswordChar.

.NET Framework
Available since 2.0
Return to top
Show: