Metodo System::ComponentModel::TypeConverter::ConvertTo

TypeConverter::ConvertTo(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&, const System::TypeInfo&) method

Converte l’oggetto in un tipo specifico.

virtual System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<ITypeDescriptorContext> &context, const System::SharedPtr<System::Globalization::CultureInfo> &culture, const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
ParametroTipoDescrizione
contextconst System::SharedPtr<ITypeDescriptorContext>&Object informazioni sul contesto di conversione.
culturaconst System::SharedPtr<System::Globalization::CultureInfo>&Culture da utilizzare durante la conversione degli oggetti.
valueconst System::SharedPtr<System::Object>&Object da convertire.
destinationTypeconst System::TypeInfo&Tipo in cui convertire.

ReturnValue

Oggetto convertito.

Vedi anche

TypeConverter::ConvertTo(const System::SharedPtr<System::Object>&, const System::TypeInfo&) method

Converte l’oggetto in un tipo specifico.

System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
ParametroTipoDescrizione
valueconst System::SharedPtr<System::Object>&Object da convertire.
destinationTypeconst System::TypeInfo&Tipo in cui convertire.

ReturnValue

Oggetto convertito.

Vedi anche