LinkConverter.CanConvertTo(ITypeDescriptorContext, Type) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Récupère une valeur qui détermine si cela LinkConverter peut convertir un objet ayant le contexte spécifié en 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
Fournit ITypeDescriptorContext des informations contextuelles sur l’objet à convertir.
- destinationType
- Type
Type vers lequel convertir l’objet.
Retours
true si cela LinkConverter peut convertir l’objet spécifié ; sinon, false.