Converts the given text to an object, using the specified context and culture information.
Public Function ConvertFromString ( _ context As ITypeDescriptorContext, _ culture As CultureInfo, _ text As String _ ) As Object
Dim instance As TypeConverter Dim context As ITypeDescriptorContext Dim culture As CultureInfo Dim text As String Dim returnValue As Object returnValue = instance.ConvertFromString(context, _ culture, text)
public Object ConvertFromString( ITypeDescriptorContext context, CultureInfo culture, string text )
public: Object^ ConvertFromString( ITypeDescriptorContext^ context, CultureInfo^ culture, String^ text )
public function ConvertFromString( context : ITypeDescriptorContext, culture : CultureInfo, text : String ) : Object
The conversion cannot be performed.
An exception is raised if the string cannot be converted into the appropriate object. The default implementation always returns nullNothingnullptra null reference (Nothing in Visual Basic).
Use the context parameter to extract additional information about the environment from which this converter is invoked. This parameter can be nullNothingnullptra null reference (Nothing in Visual Basic), so always check it. Also, properties on the context object can return nullNothingnullptra null reference (Nothing in Visual Basic).
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98