语言

StringCollectionConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定义

确定此转换器是否可以将指定的字符串列表转换为 StringCollection.

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

要从中转换的类型。

返回

true 如果此转换器可以执行转换,则为否则,为 false.

适用于