语言

DurationConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定义

确定是否可以转换为指定类型。

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

用于转换的上下文信息。

destinationType
Type

要计算的转换类型。

返回

true 如果 destinationType 为类型 String,则为 ;否则为 false。

适用于