Returns the formatted string in a displayable form.
Assembly: System (in System.dll)
The 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 null.
is commonly used to obtain the string to display in associated user interface elements, such as MaskedTextBox.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.