Converts the specified text into an object.
[Visual Basic] Overloads Public Function ConvertFromString( _ ByVal text As String _ ) As Object [C#] public object ConvertFromString( string text ); [C++] public: Object* ConvertFromString( String* text ); [JScript] public function ConvertFromString( text : String ) : Object;
A new Object with the value of the string.
A new object that the string contents represent.
Exception Type | Condition |
---|---|
GetConvertFromException(System.Object) | The string could not be converted into the appropriate object. |
An exception will be raised if the string cannot be converted into the appropriate object.
The default implementation always returns null.
TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace | TypeConverter.ConvertFromString Overload List