Share via


ExpressionConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

傳回這個轉換子是否可以將 Expression 物件轉換成特定目的型別。

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

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,表示要轉換為何種目標型別。

傳回

Boolean

一定是 false

適用於