Indicates whether the specified source type can be converted to the type of the associated control property.
- context
An System.ComponentModel.ITypeDescriptorContext implementation that can be used to gain additional context information.
- sourceType
The type to convert from.
![]()
true if the converter can perform the conversion; otherwise, false.
Call the DataSourceViewSchemaConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, Type) method to determine whether the DataSourceViewSchemaConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object) method supports converting the source type.
The DataSourceViewSchemaConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object) method can convert only from a string, so the DataSourceViewSchemaConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, Type) method returns true when sourceType is a string.