VirtualizationCacheLengthConverter.CanConvertTo 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定是否可以 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。