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

Definición

Convierte el objeto de valor dado a un tipo MarkupExtension.Converts the given value object to a MarkupExtension 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 ITypeDescriptorContext ITypeDescriptorContext

Implementación de ITypeDescriptorContext que proporciona un contexto de formato.An ITypeDescriptorContext implementation that provides a format context.

culture
CultureInfo CultureInfo CultureInfo CultureInfo

Objeto CultureInfo.A CultureInfo object. Si se pasa una referencia null, se supone la referencia cultural actual.If a null reference is passed, the current culture is assumed.

value
Object Object Object Object

Valor que se va a convertir.The value to convert.

destinationType
Type Type Type Type

Tipo deseado al que se va a convertir.The desired type to convert to.

Devoluciones

El valor convertido.The converted value.

Comentarios

Solo un destinationType de MarkupExtension devuelve un valor que procede de esta implementación.Only a destinationType of MarkupExtension returns a value originating from this implementation. Cualquier otro tipo proporcionado para destinationType hace que este método llame a base, lo que da como resultado un valor convertido no utilizable y solo sirve para la validación básica de los parámetros restantes.Any other type provided for destinationType causes this method to call base, which results in no usable converted value and only serves for basic validation of the remaining parameters.

Se aplica a