[This is preliminary documentation and is subject to change.]
Converts the given object to the type of this converter, using the specified context and culture information.
Namespace: Tools.ComponentModelTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public override sealed Object ConvertFrom( ITypeDescriptorContext context, CultureInfo culture, Object value ) |
| Visual Basic |
|---|
Public Overrides NotOverridable Function ConvertFrom ( _ context As ITypeDescriptorContext, _ culture As CultureInfo, _ value As Object _ ) As Object |
| Visual C++ |
|---|
public: virtual Object^ ConvertFrom( ITypeDescriptorContext^ context, CultureInfo^ culture, Object^ value ) override sealed |
| F# |
|---|
abstract ConvertFrom : context:ITypeDescriptorContext * culture:CultureInfo * value:Object -> Object override ConvertFrom : context:ITypeDescriptorContext * culture:CultureInfo * value:Object -> Object |
| JScript |
|---|
public override final function ConvertFrom( context : ITypeDescriptorContext, culture : CultureInfo, value : Object ) : Object |
Parameters
- context
- Type: System.ComponentModel..::..ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
- culture
- Type: System.Globalization..::..CultureInfo
The CultureInfo to use as the current culture.
- value
- Type: System..::..Object
The Object to convert.
Return Value
An Object that represents the converted value.
Remarks
This function searches for TypeConverter<(Of <(<'T>)>)>..::..ITypeConverterFrom<(Of <(<'TOther>)>)> implementation and calls its ConvertFrom(ITypeDescriptorContext, CultureInfo, UTT) method if found. Otherwise it calls ConvertFrom(Object)
Exceptions
| Exception | Condition |
|---|---|
| System..::..NotSupportedException | The conversion cannot be performed. |