Converts the specified value to a string representation.
[Visual Basic] Overloads Public Function ConvertToString( _ ByVal context As ITypeDescriptorContext, _ ByVal value As Object _ ) As String [C#] public string ConvertToString( ITypeDescriptorContext context, object value ); [C++] public: String* ConvertToString( ITypeDescriptorContext* context, Object* value ); [JScript] public function ConvertToString( context : ITypeDescriptorContext, value : Object ) : String;
A string representation of the object. Depending on the implementation of the value formatter, it may be possible to pass this string back into the value formatter to re-create an instance of the object.
The context can be used to extract additional information about the environment this converter is being invoked from. This may be a null reference (in Visual Basic Nothing), so you should always check. Also, properties on the context object may also return a null reference (Nothing).
TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace | TypeConverter.ConvertToString Overload List | ITypeDescriptorContext