语言

KeyTimeConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定义

确定给定类型是否可以转换为实例 KeyTime。

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

参数

typeDescriptorContext
ITypeDescriptorContext

转换所需的上下文信息。

type
Type

要计算的转换类型。

返回

true 如果可以转换此类型,则为否则,为 false.

适用于