BaseNumberConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) Método

Definición

Convierte el objeto especificado en otro tipo.Converts the specified object to another type.

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

Parámetros

context
ITypeDescriptorContext

ITypeDescriptorContext que ofrece un contexto de formato.An ITypeDescriptorContext that provides a format context.

culture
CultureInfo

CultureInfo que especifica la referencia cultural para representar el número.A CultureInfo that specifies the culture to represent the number.

value
Object

Objeto que se va a convertir.The object to convert.

destinationType
Type

Tipo en el que se va a convertir el objeto.The type to convert the object to.

Devoluciones

Object que representa el valor convertido.An Object that represents the converted value.

Excepciones

destinationType es null.destinationType is null.

No se puede realizar la conversión.The conversion cannot be performed.

Se aplica a