TransformConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Détermine si cette classe peut convertir un objet d'un type spécifié en un type Transform.

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

Contexte de conversion.

sourceType
Type

Type à partir duquel effectuer la conversion.

Retours

true si la conversion est possible ; sinon, false.

Remarques

Seuls les objets de chaîne peuvent être convertis.

S’applique à