Freigeben über


StringCollectionConverter.CanConvertFrom-Methode (ITypeDescriptorContext, Type)

Bestimmt, ob dieser Konverter eine angegebene Zeichenfolgenliste in eine StringCollection konvertieren kann.

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

Syntax

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

Parameter

  • sourceType
    Typ: System.Type
    Der Typ, aus dem konvertiert wird.

Rückgabewert

Typ: System.Boolean
true , wenn dieser Konverter die Konvertierung durchführen kann, andernfalls false.

.NET Framework-Sicherheit

Siehe auch

Referenz

StringCollectionConverter Klasse

CanConvertFrom-Überladung

Microsoft.Windows.Controls.Ribbon-Namespace