ImplementationVersionConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) 方法

定义

将指定的值转换为指定的表示形式。Converts the specified value to the specified representation.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object

参数

context
ITypeDescriptorContext

用于转换的上下文信息。Context information that is used for conversion.

culture
CultureInfo

可选的区域性信息。An optional culture information.

value
Object

要转换的对象。The object to convert.

destinationType
Type

要转换为的类型。The type to convert to.

返回

Object

如果指定值转换为指定表示形式,则为 true;否则为 falsetrue if the specified value to the specified representation is converted; otherwise, false.

适用于