Partager via


RequestCachePolicyConverter.CanConvertTo(ITypeDescriptorContext, Type) Méthode

Définition

Retourne une valeur qui indique si ce convertisseur peut convertir l'objet en objet du type spécifié, à l'aide du contexte spécifié.

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

Paramètres

typeDescriptorContext
ITypeDescriptorContext

Le contexte de format.

destinationType
Type

Type interrogé pour la prise en charge.

Retours

Boolean

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

Remarques

CanConvertToest introduit dans le .NET Framework version 3.5. Pour plus d’informations, consultez Versions et dépendances.

S’applique à