Langue

DurationConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Détermine si la conversion d’un type donné vers une instance de Duration ce type est possible.

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

Paramètres

td
ITypeDescriptorContext

Informations de contexte utilisées pour la conversion.

t
Type

Type évalué pour la conversion.

Retours

true si t est de type String; sinon, false.

S’applique à