语言

PropertyPathConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定义

返回此转换器是否可以将对象转换为 PropertyPath 类型。

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 个。

destinationType
Type

一个 Type 表示要转换为的类型。

返回

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

适用于