IconConverter.CanConvertTo(ITypeDescriptorContext, Type) メソッド

定義

この IconConverter が、指定したコンテキストを使用して、Icon を指定した型のインスタンスに変換できるかどうかを決定します。

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
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

書式指定コンテキストを提供する ITypeDescriptorContext

destinationType
Type

変換後の型を指定する Type

戻り値

このメソッドは、IconConverter が変換を実行できる場合は true を返します。それ以外の場合は false を返します。

注釈

このメソッドは、 true がバイト配列または文字列と等しい場合 destinationType にのみを返します。

適用対象