Gets a value indicating whether this converter can convert an object to the given destination type using the context.
[Visual Basic] Overloads Overridable Public Function CanConvertTo( _ ByVal context As ITypeDescriptorContext, _ ByVal destinationType As Type _ ) As Boolean [C#] public virtual bool CanConvertTo( ITypeDescriptorContext context, Type destinationType ); [C++] public: virtual bool CanConvertTo( ITypeDescriptorContext* context, Type* destinationType ); [JScript] public function CanConvertTo( context : ITypeDescriptorContext, destinationType : Type ) : Boolean;
true if this converter can perform the conversion; otherwise, false.
The context can be used to extract additional information about the environment this converter is being invoked from. This may be a null reference (in Visual Basic Nothing), so you should always check. Also, properties on the context object may also return a null reference (Nothing).
TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace | TypeConverter.CanConvertTo Overload List | ITypeDescriptorContext