ExpressionConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定义

返回此转换器能否将 Expression 对象转换为特定的目标类型。

此 API 支持产品基础结构,不能在代码中直接使用。

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,用于提供格式上下文。

destinationType
Type

表示要转换到的类型的 Type

返回

Boolean

总是为 false

适用于