LinkConverter.CanConvertTo(ITypeDescriptorContext, Type) Méthode

Définition

Récupère une valeur qui détermine si ce LinkConverter peut convertir un objet dont le contexte est spécifié au type 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 fournissant des informations contextuelles à propos de l'objet à convertir.

destinationType
Type

Type dans lequel convertir l'objet.

Retours

Boolean

true si ce LinkConverter peut convertir l'objet spécifié ; sinon, false.

S’applique à

Voir aussi