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 表示要转换为的类型。

返回

始终为 false

适用于