语言

VirtualizationCacheLengthConverter.CanConvertTo 方法

定义

确定是否可以 VirtualizationCacheLengthConverter 将 a VirtualizationCacheLength 转换为指定类型。

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

参数

typeDescriptorContext
ITypeDescriptorContext

提供格式上下文的对象。

destinationType
Type

要转换为的类型。

返回

true如果可以转换为指定类型,则为 VirtualizationCacheLengthConverter;否则为 VirtualizationCacheLength。false

注解

此方法CanConvertTo返回true为destinationTypeString或 InstanceDescriptor。 否则, CanConvertTo 返回 false。

适用于