語言

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 A 代表要轉換的類型。

傳回

true若 能AxHost.StateConverter執行轉換;否則 。 false

適用於