Vector3DCollectionConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定义

返回一个值,该值指示此类型转换器是否可以从指定类型进行转换。Returns a value that indicates whether this type converter can convert from a specified 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 specified type; false otherwise.

适用于