Export (0) Print
Expand All

TypeConverter.ConvertFromString Method

Converts the specified text to an object.

Overload List

Converts the specified text to an object.

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

Converts the given text to an object, using the specified context.

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

Converts the given text to an object, using the specified context and culture information.

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

Example

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

See Also

TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace

Show:
© 2014 Microsoft