语言

ActionTypeConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定义

指定动作类型转换器是否可以从指定的源对象进行转换。

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ sourceType);
public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext context, Type sourceType);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (context As ITypeDescriptorContext, sourceType As Type) As Boolean

参数

context
ITypeDescriptorContext

上下文。

sourceType
Type

源类型。

返回

如果动作类型转换器能够从指定的源对象转换,则为真;否则,就是假的。

适用于