Share via


ActionTypeConverter.CanConvertTo Method (ITypeDescriptorContext, Type)

Specifies whether the action type converter can convert to a specified destination object.

Namespace:  Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask
Assembly:  Microsoft.SqlServer.TransferDatabasesTask (in Microsoft.SqlServer.TransferDatabasesTask.dll)

Syntax

'Declaration
Public Overrides Function CanConvertTo ( _
    context As ITypeDescriptorContext, _
    destinationType As Type _
) As Boolean
'Usage
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

Parameters

  • destinationType
    Type: System.Type
    The destination type.

Return Value

Type: System.Boolean
True if the action type converter can convert to a specified destination object; otherwise, false.

See Also

Reference

ActionTypeConverter Class

CanConvertTo Overload

Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask Namespace