语言

InputScopeConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定义

确定对象是否可以 InputScope 转换为指定类型的对象。

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

参数

context
ITypeDescriptorContext

描述任何类型描述符上下文的对象。 此对象必须实现 ITypeDescriptorContext 接口。 此参数可以为 null。

destinationType
Type

用于检查转换兼容性的 A Type 。

返回

true 如果 destinationType 为类型 String,则为 ;否则为 false。

适用于