このコンバータが、コンテキストを使用してオブジェクトを指定の目的型に変換できるかどうかを示す値を取得します。
Overrides Overloads Public Function CanConvertTo( _
ByVal context As ITypeDescriptorContext, _ ByVal destinationType As Type _) As Boolean
[C#]
public override bool CanConvertTo(ITypeDescriptorContextcontext,TypedestinationType);
[C++]
public: bool CanConvertTo(ITypeDescriptorContext* context,Type* destinationType);
[JScript]
public override function CanConvertTo(
context : ITypeDescriptorContext,destinationType : Type) : Boolean;
パラメータ
- context
この型変換のコンテキストを指定する ITypeDescriptorContext 。 - destinationType
この ImageFormat オブジェクトの変換後の型を表す Type 。
戻り値
オブジェクトが変換を実行できる場合、このメソッドは true を返します。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
ImageFormatConverter クラス | ImageFormatConverter メンバ | System.Drawing 名前空間 | ImageFormatConverter.CanConvertTo オーバーロードの一覧