System.JSON.TJSONPair.Create
Delphi
constructor Create(const Str: TJSONString; const Value: TJSONValue); overload;
constructor Create(const Str: string; const Value: TJSONValue); overload;
constructor Create(const Str: string; const Value: string); overload;
constructor Create(const Str: string; const Value: Int64); overload;
constructor Create(const Str: string; const Value: Integer); overload;
constructor Create(const Str: string; const Value: Double); overload;
constructor Create(const Str: string; const Value: Boolean); overload;
constructor Create; overload; override;
C++
__fastcall TJSONPair(TJSONString* const Str, TJSONValue* const Value)/* overload */;
__fastcall TJSONPair(const System::UnicodeString Str, TJSONValue* const Value)/* overload */;
__fastcall TJSONPair(const System::UnicodeString Str, const System::UnicodeString Value)/* overload */;
__fastcall TJSONPair(const System::UnicodeString Str, const __int64 Value)/* overload */;
__fastcall TJSONPair(const System::UnicodeString Str, const int Value)/* overload */;
__fastcall TJSONPair(const System::UnicodeString Str, const double Value)/* overload */;
__fastcall TJSONPair(const System::UnicodeString Str, const bool Value)/* overload */;
__fastcall virtual TJSONPair()/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
constructor | public | System.JSON.pas System.JSON.hpp |
System.JSON | TJSONPair |
説明
TJSONPair クラスのインスタンスを作成します。
(TJSONString、TJSONValue)型のパラメータを持つバージョンの TJSONPair は、JSON ペアを作成するユーティリティ コンストラクタです。このバージョンのコンストラクタの引数とその意味を以下の表に示します。引数は NULL であってはいけません。
引数 | 意味 |
---|---|
Str |
ペアの名前。TJSONString オブジェクトとして与えられます。 |
Value |
ペアの値。TJSONValue オブジェクトとして与えられます。 |
(UnicodeString、TJSONValue)型のパラメータを持つバージョンの TJSONPair は、JSON ペアを作成する簡易コンストラクタです。このバージョンのコンストラクタの引数とその意味を以下の表に示します。引数は、それと等価な JSON 値に自動的に変換されます。
引数 | 意味 |
---|---|
Str |
ペアの名前。UnicodeString として与えられます。 |
Value |
ペアの値。TJSONValue オブジェクトとして与えられます。 |
(UnicodeString、UnicodeString)型のパラメータを持つバージョンの TJSONPair は、JSON ペアを作成する簡易コンストラクタです。このバージョンのコンストラクタの引数とその意味を以下の表に示します。引数は、TJSONString オブジェクトのペアに自動的に変換されます。
引数 | 意味 |
---|---|
Str |
ペアの名前。UnicodeString として与えられます。 |
Value |
ペアの値。UnicodeString として与えられます。 |