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
context
Type: System.ComponentModel.ITypeDescriptorContextAn ITypeDescriptorContext that provides a formatting context.
culture
Type: System.Globalization.CultureInfoA 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.
value
Type: System.ObjectThe value to convert.
destinationType
Type: System.TypeThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.