Version

CanConvertTo(ITypeDescriptorContext,Type) Method

Indicates whether conversion to an arbitrary type is possible.
Syntax
'Declaration
 
Public Overloads Overrides Function CanConvertTo( _
   ByVal context As ITypeDescriptorContext, _
   ByVal destinationType As Type _
) As Boolean
public override bool CanConvertTo( 
   ITypeDescriptorContext context,
   Type destinationType
)

Parameters

context
A context applicable when called from the environs of a TypeConverter.
destinationType
A Type that is the target of a conversion.

Return Value

True if conversion is supported, or false if not.
Remarks

Developers should call this method prior to calling ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type), to determine whether a type conversion into an InstanceDescriptor is supported by this class.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also