ListBindingConverter.CanConvertTo(ITypeDescriptorContext, Type) Méthode

Définition

Retourne une valeur indiquant si ce convertisseur peut convertir l’objet en objet du type spécifié, à l’aide du contexte spécifié.

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext context, Type destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext? context, Type? destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean

Paramètres

context
ITypeDescriptorContext

ITypeDescriptorContext qui fournit un contexte de format.

destinationType
Type

Type qui représente le type vers lequel vous souhaitez convertir.

Retours

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

S’applique à

Voir aussi