Parameters
- format
- A standard or custom format string (see Remarks).
Return Value
A string representation of value of the current object as specified by format.
The format parameter should contain either a standard format specifier or a custom format pattern that defines the format of the returned string. If format is null
or an empty string, the general format specifier, 'G', is used.
This method uses formatting information derived from the current culture.
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2012, Windows Server 2016; .NET Core, .NET 5, .NET 6: Linux, macOS, Microsoft Windows