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

定義

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

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

戻り値

Boolean

コンバーターが Unit オブジェクトを目的の型に変換できる場合は true。それ以外の場合は false

適用対象

こちらもご覧ください