BaseIListConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

判斷指定的型別是否可轉換為 String

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

正在評估以進行轉換的型別。

傳回

Boolean

如果這個型別是可轉換的則為 true,否則為 false

備註

String 是唯一支援的轉換類型。

適用於