System::ComponentModel::TypeConverter klass

TypeConverter class

Klass som hanterar typkonvertering i komponentmodellen. Objekt av denna klass bör endast allokeras med System::MakeObject() funktion. Skapa aldrig en instans av denna typ på stacken eller med operatorn new, eftersom det kan leda till körfel och/eller påståendefel. Omslut alltid denna klass i System::SmartPtr pekare och använd pekaren för att skicka den till funktioner som argument.

class TypeConverter : public System::Object

Metoder

MetodBeskrivning
ConvertFrom(const System::SharedPtr<System::Object>&)Konverterar objekt.
virtual ConvertFrom(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&)Konverterar objekt.
ConvertFrom(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::String&)Konverterar sträng till objekt.
ConvertFromInvariantString(const System::String&)Konverterar invariant sträng till objekt.
ConvertFromInvariantString(const System::SharedPtr<ITypeDescriptorContext>&, const System::String&)Konverterar invariant sträng till objekt.
ConvertFromString(const System::String&)Konverterar sträng till objekt.
ConvertFromString(const System::SharedPtr<ITypeDescriptorContext>&, const System::String&)Konverterar sträng till objekt.
ConvertFromString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::String&)Konverterar sträng till objekt.
ConvertTo(const System::SharedPtr<System::Object>&, const System::TypeInfo&)Konverterar objekt till en specifik typ.
virtual ConvertTo(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&, const System::TypeInfo&)Konverterar objekt till en specifik typ.
ConvertToInvariantString(const System::SharedPtr<System::Object>&)Konverterar objekt till invariant sträng.
ConvertToInvariantString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Object>&)Konverterar objekt till invariant sträng.
ConvertToString(const System::SharedPtr<System::Object>&)Konverterar objekt till sträng.
ConvertToString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Object>&)Konverterar objekt till sträng.
ConvertToString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&)Konverterar objekt till sträng.
TypeConverter()RTTI-information.

Se även