EventSetterHandlerConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定义

返回此转换器是否可将该对象转换为指定的类型。Returns whether this converter can convert the object to the specified type.

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, Type ^ destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (typeDescriptorContext As ITypeDescriptorContext, destinationType As Type) As Boolean

参数

typeDescriptorContext
ITypeDescriptorContext

一个 ITypeDescriptorContext,用于提供格式上下文。An ITypeDescriptorContext that provides a format context.

destinationType
Type

一个 Type,表示你希望转换为的类型。A Type that represents the type you want to convert to.

返回

始终返回 falseAlways returns false.

适用于