Share via


DependencyPropertyConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

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

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

備註

這個實作一律會傳回 false

適用於