IconConverter.CanConvertTo(ITypeDescriptorContext, Type) Méthode

Définition

Détermine si cela IconConverter peut convertir une Icon instance d’un 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);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean

Paramètres

context
ITypeDescriptorContext

Qui ITypeDescriptorContext fournit un contexte de format.

destinationType
Type

Qui Type spécifie le type vers lequel vous souhaitez effectuer la conversion.

Retours

Cette méthode retourne true si elle IconConverter peut effectuer la conversion ; sinon, false.

Remarques

Cette méthode ne retourne true que si destinationType elle est égale à un tableau d’octets ou à une chaîne.

S’applique à