StringCollectionConverter.CanConvertFrom 方法 (ITypeDescriptorContext, Type)

确定此转换器能否将指定的字符串列表转换为 StringCollection

命名空间:  Microsoft.Windows.Controls.Ribbon
程序集:  RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)

语法

声明
Public Overrides Function CanConvertFrom ( _
    context As ITypeDescriptorContext, _
    sourceType As Type _
) As Boolean
public override bool CanConvertFrom(
    ITypeDescriptorContext context,
    Type sourceType
)
public:
virtual bool CanConvertFrom(
    ITypeDescriptorContext^ context, 
    Type^ sourceType
) override
abstract CanConvertFrom : 
        context:ITypeDescriptorContext * 
        sourceType:Type -> bool 
override CanConvertFrom : 
        context:ITypeDescriptorContext * 
        sourceType:Type -> bool 
public override function CanConvertFrom(
    context : ITypeDescriptorContext, 
    sourceType : Type
) : boolean

参数

  • sourceType
    类型:System.Type
    要转换的类型。

返回值

类型:System.Boolean
如果该转换器能够执行转换,则为 true;否则为 false。

.NET Framework 安全性

请参见

参考

StringCollectionConverter 类

CanConvertFrom 重载

Microsoft.Windows.Controls.Ribbon 命名空间