TransformConverter.CanConvertTo(ITypeDescriptorContext, Type) TransformConverter.CanConvertTo(ITypeDescriptorContext, Type) TransformConverter.CanConvertTo(ITypeDescriptorContext, Type) TransformConverter.CanConvertTo(ITypeDescriptorContext, Type) Method

定義

指定した型のオブジェクトから指定した変換先の型への変換を、このクラスが実行できるかどうかを判別します。Determines whether this class can convert an object of a specified type to the specified destination type.

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 ITypeDescriptorContext ITypeDescriptorContext

変換コンテキスト。The conversion context.

destinationType
Type Type Type Type

変換先の型。The destination type.

戻り値

変換できる場合は true。それ以外の場合は falsetrue if conversion is possible; otherwise, false.

適用対象