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

Definizione

Converte l'oggetto valore indicato nel tipo specificato, usando il contesto e le informazioni sulle impostazioni cultura specificati.Converts the given value object to the specified type, using the specified context and culture information.

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

Parametri

context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

Oggetto ITypeDescriptorContext che fornisce un contesto di formato.An ITypeDescriptorContext that provides a format context.

culture
CultureInfo CultureInfo CultureInfo CultureInfo

Oggetto CultureInfo da usare come impostazioni cultura correnti.The CultureInfo to use as the current culture.

value
Object Object Object Object

Oggetto Object da convertire.The Object to convert.

destinationType
Type Type Type Type

Oggetto Type in cui convertire il parametro del valore.The Type to convert the value parameter to.

Restituisce

Oggetto Object che rappresenta il valore convertito.An Object that represents the converted value.

Eccezioni

Impossibile eseguire la conversione.The conversion cannot be performed.

Si applica a