UserContextTypeConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

This method is not used by the Visual Studio SDK. Converts the Help context to the specified type by using the specified format context.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.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

  • context
    Type: ITypeDescriptorContext

    The format context.

  • culture
    Type: CultureInfo

    The culture information, or null for the current culture.

  • value
    Type: Object

    The object to convert.

  • destinationType
    Type: Type

    The type to convert the value to.

Return Value

Type: Object
The converted value.

Exceptions

Exception Condition
ArgumentNullException

destinationType is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

UserContextTypeConverter Class

ConvertTo Overload

Microsoft.VisualStudio.Modeling.Design Namespace