ImageSourceConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

判斷 ImageSource 的執行個體是否可轉換成不同型別。

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

如果轉換子可以轉換這個 ImageSource 的執行個體則為 true,否則為 false

例外狀況

context 執行個體不是 ImageSource

適用於