UnitConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)
.NET Framework 3.0
This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Returns a value indicating whether the unit converter can convert from the specified source type.
Namespace: System.Web.UI.WebControlsAssembly: System.Web (in system.web.dll)
public: virtual bool CanConvertFrom ( ITypeDescriptorContext^ context, Type^ sourceType ) override
public boolean CanConvertFrom ( ITypeDescriptorContext context, Type sourceType )
public override function CanConvertFrom ( context : ITypeDescriptorContext, sourceType : Type ) : boolean
Not applicable.
Parameters
- context
An ITypeDescriptorContext instance that specifies the context of the object to convert.
- sourceType
The type of the source.
Return Value
true if the source type can be converted from; otherwise, false.Community Additions
ADD
Show: