Converts from a PlatformType to a string.
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 PlatformTypeConverter
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 further specifying the type.
culture
Type: System.Globalization.CultureInfoA CultureInfo object specifying the language and culture of the string.
value
Type: System.ObjectThe PlatformType.
destinationType
Type: System.TypeThe type to which to convert.
Return Value
Type: System.Object
If destinationType is a string, returns a PlatformType, otherwise calls the base method.
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.