言語

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

定義

オブジェクトの長さを表す Double から、指定した型への変換が可能かどうかを判断します。

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

コンポーネントに関するコンテキスト情報を提供します。

destinationType
Type

変換のために評価するデータ型を識別します。

返品

true destinationTypeへの変換が可能な場合は 。それ以外の場合はfalse

注釈

LengthConverter では、 StringDecimalSingleDoubleInt16Int32Int64UInt16UInt32、および UInt64の変換がサポートされています。

適用対象