System.JSON.Types.JsonExcludeValueAttribute.Create
Delphi
constructor Create(const AValue: Boolean); overload;
constructor Create(const AValue: AnsiChar); overload;
constructor Create(const AValue: Char); overload;
constructor Create(const AValue: Integer); overload;
constructor Create(const AValue: Cardinal); overload;
constructor Create(const AValue: Int64); overload;
constructor Create(const AValue: UInt64); overload;
constructor Create(const AValue: String); overload;
constructor Create(const AValue: Extended); overload;
C++
__fastcall JsonExcludeValueAttribute(const bool AValue)/* overload */;
__fastcall JsonExcludeValueAttribute(const char AValue)/* overload */;
__fastcall JsonExcludeValueAttribute(const System::WideChar AValue)/* overload */;
__fastcall JsonExcludeValueAttribute(const int AValue)/* overload */;
__fastcall JsonExcludeValueAttribute(const unsigned AValue)/* overload */;
__fastcall JsonExcludeValueAttribute(const __int64 AValue)/* overload */;
__fastcall JsonExcludeValueAttribute(const unsigned __int64 AValue)/* overload */;
__fastcall JsonExcludeValueAttribute(const System::UnicodeString AValue)/* overload */;
__fastcall JsonExcludeValueAttribute(const System::Extended AValue)/* overload */;
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
|---|---|---|---|---|
| constructor | public | System.JSON.Types.pas System.JSON.Types.hpp |
System.JSON.Types | JsonExcludeValueAttribute |
Beschreibung
Erzeugt ein Objekt und initialisert dessen Daten.
System.JSON.Types.JsonExcludeValueAttribute.Create erbt von System.TObject.Create. Der folgende Inhalt bezieht sich auf System.TObject.Create.
Erzeugt ein Objekt und initialisert dessen Daten.
Create erstellt ein Objekt. Der Zweck, die Größe und das Verhalten von Objekten ist sehr unterschiedlich. Der von TObject definierte Konstruktor Create weist Speicher zu, initialisiert aber keine Daten.
Abgeleitete Objekte definieren normalerweise einen Konstruktor, der bei der Erzeugung eines bestimmten Objekttyps die Daten in geeigneter Weise initialisiert.
Anmerkung: Wenn ein Konstruktor eine Exception nicht behandelt, wird der Destruktor des Objekts aufgerufen, um die fehlerhafte Instanz zu beseitigen.