DataSourceCacheDurationConverter.CanConvertFrom メソッド

定義

DataSourceCacheDurationConverter で、特定の型のオブジェクトを Int32 オブジェクトに変換できるかどうかを判断します。

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ sourceType);
public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext context, Type sourceType);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (context As ITypeDescriptorContext, sourceType As Type) As Boolean

パラメーター

context
ITypeDescriptorContext

書式指定コンテキストを提供する ITypeDescriptorContext

sourceType
Type

コンバーターが変換する型を表す Type

戻り値

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

注釈

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

適用対象