Partager via


BaseEnumStringConverter<T>.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

Converts the specified value object to the specified type by using the specified context and culture information.

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

Syntax

'Declaration
Public Overrides Function ConvertTo ( _
    context As ITypeDescriptorContext, _
    culture As CultureInfo, _
    value As Object, _
    destinationType As Type _
) As Object
public override Object ConvertTo(
    ITypeDescriptorContext context,
    CultureInfo culture,
    Object value,
    Type destinationType
)
public:
virtual Object^ ConvertTo(
    ITypeDescriptorContext^ context, 
    CultureInfo^ culture, 
    Object^ value, 
    Type^ destinationType
) override
abstract ConvertTo : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object * 
        destinationType:Type -> Object  
override ConvertTo : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object * 
        destinationType:Type -> Object
public override function ConvertTo(
    context : ITypeDescriptorContext, 
    culture : CultureInfo, 
    value : Object, 
    destinationType : Type
) : Object

Parameters

  • culture
    Type: CultureInfo

    The T:System.Globalization.CultureInfo to use as the current culture.

  • value
    Type: Object

    The Object to convert.

  • destinationType
    Type: Type

    The Type to which to convert the value parameter.

Return Value

Type: Object
An Object that represents the converted value.

.NET Framework Security

See Also

Reference

BaseEnumStringConverter<T> Class

ConvertTo Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace