KeyTimeConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定对象是否可以从给定类型转换为实例 KeyTime。
public:
override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, Type ^ type);
public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, Type type);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (typeDescriptorContext As ITypeDescriptorContext, type As Type) As Boolean
参数
- typeDescriptorContext
- ITypeDescriptorContext
转换所需的上下文信息。
- type
- Type
要计算的转换类型。
返回
true 如果可以转换此类型,则为否则,为 false.