BaseNumberConverter.CanConvertTo(ITypeDescriptorContext, Type) Méthode

Définition

Retourne une valeur indiquant si ce convertisseur peut convertir un objet en type de destination donné à l’aide du contexte.

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

Paramètres

context
ITypeDescriptorContext

Qui ITypeDescriptorContext fournit un contexte de format.

tdestinationType
Type

Qui Type représente le type vers lequel vous souhaitez effectuer la conversion.

Retours

true si ce convertisseur peut effectuer l’opération ; sinon, false.

S’applique à