Rect3DConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定义

获取一个值,此值指示此类型转换器是否可以从给定类型进行转换。Gets a value that indicates whether this type converter can convert from a given 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

此调用的 ITypeDescriptorContext。ITypeDescriptorContext for this call.

sourceType
Type

对其进行支持查询的类型。Type being queried for support.

返回

Boolean

如果此转换器可从提供的类型进行转换,则为 true;否则为 false。true if this converter can convert from the provided type, false otherwise.

适用于