Langue

ReportSizeConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Indique si ce convertisseur peut convertir un objet dans le type de source donné en utilisant le contexte spécifié.

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

Fournit le contexte du format.

sourceType
Type

Type à partir duquel vous souhaitez effectuer la conversion.

Retours

True si ce convertisseur peut effectuer la conversion ; sinon, false.

S’applique à