RepeatBehaviorConverter.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

要进行计算以供转换的目标类型。

返回

Boolean

如果可以进行转换,则为 true;否则为 false

注解

唯一支持的目标类型为 StringInstanceDescriptor

适用于