StringCollectionConverter.CanConvertTo Method (ITypeDescriptorContext, Type)

Determines whether an instance of the StringCollection type can be converted to an instance of the specified type.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
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

Parameters

  • destinationType
    Type: System.Type
    The type to convert to.

Return Value

Type: System.Boolean
true if conversion is possible, otherwise false.

.NET Framework Security

See Also

Reference

StringCollectionConverter Class

CanConvertTo Overload

Microsoft.Windows.Controls.Ribbon Namespace