Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TypeConverter::ConvertToString Method (Object^)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Converts the specified value to a string representation.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

String^ ConvertToString(
	Object^ value


Type: System::Object^

The Object to convert.

Return Value

Type: System::String^

An Object that represents the converted value.

Exception Condition

The conversion cannot be performed.

Depending on the implementation of the value formatter, it might be possible to pass the returned string back into the value formatter to re-create an instance of the object.

For an example on this function, see the TypeConverter class.

.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2018 Microsoft