System::ComponentModel::TypeConverter klasse

TypeConverter class

Klasse die typeconversie afhandelt in het componentmodel. Objecten van deze klasse mogen alleen worden gealloceerd met de System::MakeObject()‑functie. Maak nooit een instantie van dit type op de stack of met operator new, omdat dit leidt tot runtime‑fouten en/of assertiefouten. Wikkel deze klasse altijd in de System::SmartPtr‑pointer en gebruik deze pointer om deze als argument aan functies door te geven.

class TypeConverter : public System::Object

Methoden

MethodeBeschrijving
ConvertFrom(const System::SharedPtr<System::Object>&)Converteert objecten.
virtual ConvertFrom(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&)Converteert objecten.
ConvertFrom(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::String&)Converteert string naar object.
ConvertFromInvariantString(const System::String&)Converteert een invariant tekenreeks naar een object.
ConvertFromInvariantString(const System::SharedPtr<ITypeDescriptorContext>&, const System::String&)Converteert een invariant tekenreeks naar een object.
ConvertFromString(const System::String&)Converteert string naar object.
ConvertFromString(const System::SharedPtr<ITypeDescriptorContext>&, const System::String&)Converteert string naar object.
ConvertFromString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::String&)Converteert string naar object.
ConvertTo(const System::SharedPtr<System::Object>&, const System::TypeInfo&)Converteert object naar een specifiek type.
virtual ConvertTo(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&, const System::TypeInfo&)Converteert object naar een specifiek type.
ConvertToInvariantString(const System::SharedPtr<System::Object>&)Converteert een object naar een invariant tekenreeks.
ConvertToInvariantString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Object>&)Converteert een object naar een invariant tekenreeks.
ConvertToString(const System::SharedPtr<System::Object>&)Converteert een object naar een tekenreeks.
ConvertToString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Object>&)Converteert een object naar een tekenreeks.
ConvertToString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&)Converteert een object naar een tekenreeks.
TypeConverter()RTTI-informatie.

Zie ook