Share via


RoutedEventConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Détermine si un objet du type spécifié peut être converti en une instance de RoutedEvent.

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

Paramètres

typeDescriptorContext
ITypeDescriptorContext

Contexte de format qui fournit des informations sur l'environnement à partir duquel ce convertisseur est appelé.

sourceType
Type

Type évalué pour la conversion.

Retours

true si le convertisseur peut effectuer la conversion ; sinon, false.

Remarques

La RoutedEventConverter classe convertit uniquement à partir de String. typeDescriptorContext n’est pas utilisé par cette implémentation.

S’applique à