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

Converts a BuildAction value to the specified type.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overrides Function ConvertTo ( _
    context As ITypeDescriptorContext, _
    culture As CultureInfo, _
    value As Object, _
    destinationType As Type _
) As Object
'使用
Dim instance As BuildActionConverter
Dim context As ITypeDescriptorContext
Dim culture As CultureInfo
Dim value As Object
Dim destinationType As Type
Dim returnValue As Object

returnValue = instance.ConvertTo(context, _
    culture, value, destinationType)
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
public override function ConvertTo(
    context : ITypeDescriptorContext, 
    culture : CultureInfo, 
    value : Object, 
    destinationType : Type
) : Object

Parameters

  • culture
    Type: System.Globalization.CultureInfo

    A CultureInfo object that describes the locale and other culture-specific information. Can be a null reference (Nothing in Visual Basic), in which case the current culture is assumed.

  • destinationType
    Type: System.Type

    The type to which to convert the value.

Return Value

Type: System.Object

A string value if destinationType is a string type, otherwise calls the base.

Permissions

See Also

Reference

BuildActionConverter Class

BuildActionConverter Members

ConvertTo Overload

Microsoft.VisualStudio.Package Namespace