LengthConverter.CanConvertTo(ITypeDescriptorContext, Type) Méthode

Définition

Détermine s'il est possible de réaliser une conversion vers un type spécifié à partir d'un Double qui représente une longueur d'objet.

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

Paramètres

typeDescriptorContext
ITypeDescriptorContext

Fournit des informations contextuelles sur un composant.

destinationType
Type

Identifie le type de données à évaluer pour la conversion.

Retours

true si la conversion vers le destinationType est possible ; sinon, false.

Remarques

LengthConverterprend en charge la conversion des types suivants : String, Decimal, DoubleSingle, Int16, Int32, Int64, , UInt16, , UInt32et UInt64.

S’applique à