语言

AxHost.StateConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定义

返回是否可以 AxHost.StateConverter 使用上下文将对象转换为给定的目标类型。

此 API 支持产品基础结构,不能在代码中直接使用。

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

一个 Type ,表示要从中转换的类型。

返回

true AxHost.StateConverter如果可以执行转换,则为 ;否则为 false。

适用于