DateOnlyConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Obtient une valeur indiquant si ce convertisseur peut convertir un objet du type source donné en objet DateOnly à l’aide du contexte spécifié.

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

Paramètres

context
ITypeDescriptorContext

ITypeDescriptorContext qui fournit un contexte de format.

sourceType
Type

Type à partir duquel effectuer la conversion.

Retours

true si cet objet peut effectuer la conversion ; sinon false.

S’applique à