ResXFileRef.Converter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定义

返回此转换器是否可以使用指定的上下文将对象转换为指定类型。

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

参数

context
ITypeDescriptorContext

提供格式上下文的一 ITypeDescriptorContext 个。

destinationType
Type

一个 Type 表示要转换为的类型。

返回

true 如果此转换器可以执行转换,则为否则,为 false.

适用于