语言

RequestCachePolicyConverter.CanConvertTo(ITypeDescriptorContext, 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

格式上下文。

destinationType
Type

要查询支持的类型。

返回

true 如果此转换器可以执行转换,则为否则,为 false.

注解

.NET Framework 版本 3.5 中引入了 CanConvertTo。 有关详细信息,请参阅 版本和依赖项。

适用于