Share via


ExpressionConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定義

傳回這個轉換子是否可以將來源物件轉換成 Expression 物件。

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

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,表示要轉換的來源型別。

傳回

Boolean

一定是 false

適用於