語言

TransformConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

判斷此類別是否能將指定類型的物件轉換為指定的目的類型。

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

轉換的背景。

destinationType
Type

目的地類型。

傳回

true若可轉換;否則,。 false

適用於