Partage via


BaseIListConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Détermine si un type donné peut être converti.

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

Paramètres

td
ITypeDescriptorContext

Fournit les informations contextuelles requises pour la conversion.

t
Type

Type évalué pour la conversion.

Retours

Boolean

true si ce type peut être converti, sinon false.

Remarques

String est le seul type pris en charge pour la conversion.

S’applique à