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

定義

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

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

返品

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

注釈

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

適用対象