ActionTypeConverter.CanConvertTo 方法 (ITypeDescriptorContext, Type)
Specifies whether the action type converter can convert to a specified destination object.
命名空间: Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask
程序集: Microsoft.SqlServer.TransferDatabasesTask(在 Microsoft.SqlServer.TransferDatabasesTask.dll 中)
语法
声明
Public Overrides Function CanConvertTo ( _
context As ITypeDescriptorContext, _
destinationType As Type _
) As Boolean
用法
Dim instance As ActionTypeConverter
Dim context As ITypeDescriptorContext
Dim destinationType As Type
Dim returnValue As Boolean
returnValue = instance.CanConvertTo(context, _
destinationType)
public override bool CanConvertTo(
ITypeDescriptorContext context,
Type destinationType
)
public:
virtual bool CanConvertTo(
ITypeDescriptorContext^ context,
Type^ destinationType
) override
abstract CanConvertTo :
context:ITypeDescriptorContext *
destinationType:Type -> bool
override CanConvertTo :
context:ITypeDescriptorContext *
destinationType:Type -> bool
public override function CanConvertTo(
context : ITypeDescriptorContext,
destinationType : Type
) : boolean
参数
- context
类型:System.ComponentModel.ITypeDescriptorContext
The context.
- destinationType
类型:System.Type
The destination type.
返回值
类型:System.Boolean
True if the action type converter can convert to a specified destination object; otherwise, false.