Returns a string that represents the current object.Returns a string that represents the current object.Returns a string that represents the current object.Returns a string that represents the current object.
Syntax
public override string ToString()
public:
String^ ToString(); override
Return Value
A string that represents the current object.A string that represents the current object.A string that represents the current object.A string that represents the current object.
Requirements
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows
See Also