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

定義

指定された型への変換ができるかどうかを判断します。Determines if conversion to a specified type is possible.

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

変換のために使用されるコンテキスト情報。Context information used for conversion.

destinationType
Type Type Type Type

変換の評価対象である型。Type being evaluated for conversion.

戻り値

true の型が destinationType の場合は String。それ以外の場合は falsetrue if destinationType is of type String; otherwise, false.

適用対象