Share via


DataSourceCacheDurationConverter.CanConvertTo メソッド

定義

DataSourceCacheDurationConverter インスタンスでオブジェクトを変換先の特定の型に変換できるかどうかを示す値を返します。

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

戻り値

このコンバーターが操作を実行できる場合は true、それ以外の場合は false です。

注釈

DataSourceCacheDurationConverter 型への変換を明示的にInstanceDescriptorstring処理します。 それ以外の場合は、 Int32Converter基底クラス の を呼び出して決定を行います。

適用対象