.NET Framework Class Library
ValueTypeToString Method

Returns the fully qualified type name of this instance.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)
Public Overrides Function ToString As [%$TOPIC/wb77sz3h_en-us_VS_110_1_0_0_0_0%]
public override [%$TOPIC/wb77sz3h_en-us_VS_110_1_0_1_0_0%] ToString()
virtual [%$TOPIC/wb77sz3h_en-us_VS_110_1_0_2_0_0%]^ ToString() override
abstract ToString : unit -> [%$TOPIC/wb77sz3h_en-us_VS_110_1_0_3_0_0%]  
override ToString : unit -> [%$TOPIC/wb77sz3h_en-us_VS_110_1_0_3_0_1%]
public override function ToString() : [%$TOPIC/wb77sz3h_en-us_VS_110_1_0_4_0_0%]

Return Value

Type: SystemString
A String containing a fully qualified type name.

When you call the ToString method on a Windows Runtime structure, it provides the default behavior for value types that don’t override ToString. This is part of the support that the .NET Framework provides for the Windows Runtime (see .NET Framework Support for Windows Store Apps and Windows Runtime). Windows Runtime structures can’t override ToString, even if they’re written with C# or Visual Basic, because they can’t have methods. (In addition, structures in the Windows Runtime itself don’t inherit ValueType.) However, they appear to have ToString, Equals, and GetHashCode methods when you use them in your C# or Visual Basic code, and the .NET Framework provides the default behavior for these methods.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8