MaskedTextProvider.ToString Method ()

 

Returns the formatted string that includes all the assigned character values.

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

public override string ToString()

Return Value

Type: System.String

The formatted String that includes all the assigned character values.

This version of the overloaded ToString method includes prompts and literals according to the current values of the IncludePrompt and IncludeLiterals properties, respectively. It will always return the original input characters, ignoring the value of the PasswordChar property.

System_CAPS_importantImportant

Because this method reveals information that is usually protected in the user interface by password characters, it should be used with extreme caution to avoid accidentally revealing sensitive user data.

.NET Framework
Available since 2.0
Return to top
Show: