Partager via


BaseEnumStringConverter<T>.CanConvertTo Method (ITypeDescriptorContext, Type)

Returns a value that indicates whether this converter can convert the object to the specified type.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

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

    A Type that represents the type to which you want to convert.

Return Value

Type: Boolean
true if this converter can perform the conversion; otherwise, false.

.NET Framework Security

See Also

Reference

BaseEnumStringConverter<T> Class

CanConvertTo Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace