LinkConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定义

检索一个值,该值确定是否 LinkConverter 可以将具有指定上下文的对象转换为指定类型。

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
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

要将对象转换为的类型。

返回

如果这 可以转换指定的对象,则为 。

适用于

另请参阅