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

定義

このコンバーターが、コンテキストを使用してオブジェクトを指定の目的型に変換できるかどうかを示す値を取得します。

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

この ImageFormat オブジェクトの変換後の型を表す Type

戻り値

Boolean

オブジェクトが変換を実行できる場合、このメソッドは true を返します。

注釈

クラス ImageFormatConverter で指定された既知のイメージ形式との間で変換されます ImageFormat

適用対象