Converts the given object to the converter's native type.
[Visual Basic] Overloads Overridable Public Function ConvertFrom( _ ByVal context As ITypeDescriptorContext, _ ByVal value As Object, _ ByVal arguments() As Object _ ) As Object [C#] public virtual object ConvertFrom( ITypeDescriptorContext context, object value, object[] arguments ); [C++] public: virtual Object* ConvertFrom( ITypeDescriptorContext* context, Object* value, Object* arguments[] ); [JScript] public function ConvertFrom( context : ITypeDescriptorContext, value : Object, arguments : Object[] ) : Object;
The converted object.
Exception Type | Condition |
---|---|
GetConvertFromException(System.Object) | The conversion could not be performed. |
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.ConvertFrom Overload List | ITypeDescriptorContext