VirtualizationCacheLengthConverter.CanConvertTo Método

Definição

Determina se o VirtualizationCacheLengthConverter pode converter um VirtualizationCacheLength no tipo especificado.

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

Parâmetros

typeDescriptorContext
ITypeDescriptorContext

Um objeto que fornece um contexto de formato.

destinationType
Type

O tipo para o qual converter.

Retornos

Boolean

true se o VirtualizationCacheLengthConverter puder converter um VirtualizationCacheLength no tipo especificado, caso contrário, false.

Comentários

O CanConvertTo método retorna true se destinationType for String ou InstanceDescriptor. Caso contrário, CanConvertTo retornará false.

Aplica-se a