FigureLengthConverter.CanConvertFrom(ITypeDescriptorContext, Type) Methode

Definition

Gibt an, ob ein Objekt von einem bestimmten Typ in eine Instanz eines Objekts FigureLengthkonvertiert werden kann.

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, Type ^ sourceType);
public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, Type sourceType);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (typeDescriptorContext As ITypeDescriptorContext, sourceType As Type) As Boolean

Parameter

typeDescriptorContext
ITypeDescriptorContext

Beschreibt die Kontextinformationen eines Typs.

sourceType
Type

Die Quelle Type , die zur Konvertierungsunterstützung abgefragt wird.

Gibt zurück

true if object of the specified type can be converted to a FigureLength; otherwise, false.

Hinweise

Anstatt nur Zeichenfolgen zu unterstützen, unterstützt dieser Konverter auch andere numerische Grundtypen, z UInt32. B. .

Gilt für: