FigureLengthConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

判斷 FigureLength 的執行個體是否可轉換為指定的型別。

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, Type ^ destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (typeDescriptorContext As ITypeDescriptorContext, destinationType As Type) As Boolean

參數

typeDescriptorContext
ITypeDescriptorContext

描述類型的內容資訊。

destinationType
Type

這個 FigureLength 正受評估以轉換成的型別。

傳回

如果 FigureLength 的執行個體可以轉換成 destinationType 則為 true,否則為 false

備註

此轉換器支援兩種目的地類型: String 、 或 InstanceDescriptor

適用於