ActionTypeConverter.CanConvertFrom 方法 (ITypeDescriptorContext, Type)

Specifies whether the action type converter can convert from a specified source object.

命名空间:  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 if the action type converter can convert from a specified source object; otherwise, false.

请参阅

参考

ActionTypeConverter 类

CanConvertFrom 重载

Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask 命名空间