TypeListConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Obtient une valeur qui indique si ce convertisseur peut convertir le Type spécifié de l'objet de source à l'aide du contexte donné.

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ sourceType);
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

ITypeDescriptorContext qui fournit un contexte de format.

sourceType
Type

Type de l'objet source.

Retours

true si ce convertisseur peut effectuer la conversion ; sinon false.

S’applique à