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

定義

コンバーターがオブジェクトを指定した型に変換できるかどうかを示す値を返します。

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, Type ^ destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (typeDescriptorContext As ITypeDescriptorContext, destinationType As Type) As Boolean

パラメーター

typeDescriptorContext
ITypeDescriptorContext

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

destinationType
Type

変換後の型。

戻り値

Boolean

コンバーターが変換を実行できる場合は true。それ以外の場合は false

注釈

このメソッドは、of または destinationType of の値をInstanceDescriptordestinationType返しますtrueString

適用対象

こちらもご覧ください