PropertyPathConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

傳回值,指出這個轉換子是否可以將物件轉換成 PropertyPath 型別。

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

提供格式內容的 ITypeDescriptorContext

destinationType
Type

Type,代表您想要轉換成的類型。

傳回

如果 destinationType 的型別為 String 則為 true,否則為 false

適用於