TimeOnlyConverter.CanConvertTo(ITypeDescriptorContext, Type) Méthode

Définition

Obtient 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 ^ 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

Type vers lequel effectuer la conversion.

Retours

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

S’applique à