Share via


VectorCollectionConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定义

确定是否可将一个对象从指定类型转换为 VectorCollection 的实例。

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

为了进行转换而要计算的源的类型。

返回

如果可将该类型转换为 VectorCollection,则为 true;否则为 false

适用于