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

適用於