Share via


VirtualizationCacheLengthConverter.CanConvertTo Méthode

Définition

Détermine si VirtualizationCacheLengthConverter peut convertir une VirtualizationCacheLength dans le type 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

Objet qui fournit un contexte de format.

destinationType
Type

Type vers lequel effectuer la conversion.

Retours

Boolean

true si le VirtualizationCacheLengthConverter peut convertir un VirtualizationCacheLength au type spécifié ; sinon, false.

Remarques

La CanConvertTo méthode retourne true si destinationType c’est String ou InstanceDescriptor. Sinon, CanConvertTo retourne false.

S’applique à