語言

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

定義

回傳 AxHost.StateConverter 是否能利用指定的上下文將指定類型的物件轉換為 AxHost.State。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

context
ITypeDescriptorContext

提供格式背景的一個 ITypeDescriptorContext 。

sourceType
Type

Type A 代表要轉換的類型。

傳回

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

適用於