Assembly: System (in system.dll)
The ToDisplayString method will always include prompt and literal characters in the return value, regardless of the value of the IncludePrompt or IncludeLiterals properties. This method will always display password characters if the PasswordChar property is set to a character value other than a null reference (Nothing in Visual Basic).
ToDisplayString is commonly used to obtain the string to display in associated user interface elements, such as MaskedTextBox.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.