StringCollectionConverter.CanConvertTo 方法 (ITypeDescriptorContext, Type)

确定能否将 StringCollection 类型的实例转换为指定类型的实例。

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

语法

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

参数

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

返回值

类型:System.Boolean
如果可以进行转换,则为 true,否则为 false。

.NET Framework 安全性

请参见

参考

StringCollectionConverter 类

CanConvertTo 重载

Microsoft.Windows.Controls.Ribbon 命名空间