UnitConverter.CanConvertTo 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 converter can convert a Unit object to the specified type.
Namespace: System.Web.UI.WebControlsAssembly: System.Web (in system.web.dll)
public: virtual bool CanConvertTo ( ITypeDescriptorContext^ context, Type^ destinationType ) override
public boolean CanConvertTo ( ITypeDescriptorContext context, Type destinationType )
public override function CanConvertTo ( context : ITypeDescriptorContext, destinationType : Type ) : boolean
Not applicable.
Parameters
- context
An ITypeDescriptorContext that indicates the context of the object to convert.
- destinationType
The System.Type that represents the data type to convert to.
Return Value
true if the converter supports converting a Unit object to the destination type; otherwise, false.Community Additions
ADD
Show: