DataSourceIDConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)
.NET Framework (current version)
Gets a value indicating whether this converter can convert an object in the specified source type to the native type of the converter.
Assembly: System.Design (in System.Design.dll)
Parameters
- context
-
Type:
System.ComponentModel.ITypeDescriptorContext
An object implementing the ITypeDescriptorContext that provides information about a context to a type converter so that the type converter can perform a conversion.
- sourceType
-
Type:
System.Type
The Type of the object for which conversion is being requested.
The ConvertFrom method can only convert from a string, so the CanConvertFrom only returns true when sourcetype is a string.
The CanConvertFrom does not use the context parameter.
.NET Framework
Available since 2.0
Available since 2.0
Show: