LengthConverter.CanConvertTo(ITypeDescriptorContext, Type) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si la conversion est possible en type spécifié à partir d’un objet qui représente la longueur d’un Double 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 est destinationType possible ; sinon, false.
Remarques
LengthConverterprend en charge la conversion des types suivants : String, DecimalSingleDoubleInt16Int32Int64, UInt16, , UInt32, et .UInt64