語言

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代表你想轉換成的類型。

傳回

true若 destinationType 是型態String;否則,。 false

適用於