This documentation is archived and is not being maintained.

TypeConverter.ConvertToString Method

Converts the specified value to a string representation.

Overload List

Converts the specified value to a string representation.

[Visual Basic] Overloads Public Function ConvertToString(Object) As String
[C#] public string ConvertToString(object);
[C++] public: String* ConvertToString(Object*);
[JScript] public function ConvertToString(Object) : String;

Converts the given value to a string representation, using the given context.

[Visual Basic] Overloads Public Function ConvertToString(ITypeDescriptorContext, Object) As String
[C#] public string ConvertToString(ITypeDescriptorContext, object);
[C++] public: String* ConvertToString(ITypeDescriptorContext*, Object*);
[JScript] public function ConvertToString(ITypeDescriptorContext, Object) : String;

Converts the given value to a string representation, using the specified context and culture information.

[Visual Basic] Overloads Public Function ConvertToString(ITypeDescriptorContext, CultureInfo, Object) As String
[C#] public string ConvertToString(ITypeDescriptorContext, CultureInfo, object);
[C++] public: String* ConvertToString(ITypeDescriptorContext*, CultureInfo*, Object*);
[JScript] public function ConvertToString(ITypeDescriptorContext, CultureInfo, Object) : String;

Example

For an example on this function, see the sample in TypeConverter.

See Also

TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace

Show: