BaseNumberConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Détermine si ce convertisseur peut convertir un objet dans le type source donné en type natif du convertisseur.

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

Paramètres

context
ITypeDescriptorContext

Qui ITypeDescriptorContext fournit un contexte de format.

sourceType
Type

Qui Type représente le type à partir duquel vous souhaitez effectuer la conversion.

Retours

true si ce convertisseur peut effectuer l’opération ; sinon, false.

S’applique à