Share via


Int32CollectionConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Détermine si le convertisseur peut convertir un objet du type déterminé en une instance de Int32Collection.

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

Décrit les informations de contexte d’un type.

sourceType
Type

Type de la source qui est en cours d'évaluation pour conversion.

Retours

Boolean

true si le convertisseur peut convertir le type fourni en une instance de Int32Collection ; sinon, false.

S’applique à