次の方法で共有


ActionTypeConverter.CanConvertFrom メソッド (ITypeDescriptorContext, Type)

アクション型コンバーターが、指定した変換元オブジェクトを変換できるかどうかを指定します。

名前空間:  Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask
アセンブリ:  Microsoft.SqlServer.TransferDatabasesTask (Microsoft.SqlServer.TransferDatabasesTask.dll)

構文

'宣言
Public Overrides Function CanConvertFrom ( _
    context As ITypeDescriptorContext, _
    sourceType As Type _
) As Boolean
'使用
Dim instance As ActionTypeConverter 
Dim context As ITypeDescriptorContext 
Dim sourceType As Type 
Dim returnValue As Boolean 

returnValue = instance.CanConvertFrom(context, _
    sourceType)
public override bool CanConvertFrom(
    ITypeDescriptorContext context,
    Type sourceType
)
public:
virtual bool CanConvertFrom(
    ITypeDescriptorContext^ context, 
    Type^ sourceType
) override
abstract CanConvertFrom : 
        context:ITypeDescriptorContext * 
        sourceType:Type -> bool  
override CanConvertFrom : 
        context:ITypeDescriptorContext * 
        sourceType:Type -> bool
public override function CanConvertFrom(
    context : ITypeDescriptorContext, 
    sourceType : Type
) : boolean

パラメーター

戻り値

型: System.Boolean
アクション型コンバーターが、指定した変換元オブジェクトを変換できる場合は true、それ以外の場合は false です。

関連項目

参照

ActionTypeConverter クラス

CanConvertFrom オーバーロード

Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask 名前空間