System.JSON.TJSONObject.AddPair
Delphi
function AddPair(const Pair: TJSONPair): TJSONObject; overload;
function AddPair(const Str: TJSONString; const Val: TJSONValue): TJSONObject; overload;
function AddPair(const Str: string; const Val: TJSONValue): TJSONObject; overload;
function AddPair(const Str: string; const Val: string): TJSONObject; overload;
C++
TJSONObject* __fastcall AddPair(TJSONPair* const Pair)/* overload */;
TJSONObject* __fastcall AddPair(TJSONString* const Str, TJSONValue* const Val)/* overload */;
TJSONObject* __fastcall AddPair(const System::UnicodeString Str, TJSONValue* const Val)/* overload */;
TJSONObject* __fastcall AddPair(const System::UnicodeString Str, const System::UnicodeString Val)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.JSON.pas System.JSON.hpp |
System.JSON | TJSONObject |
説明
現在の JSON オブジェクトに新しいペアを追加します。
現在の JSON オブジェクトに新しい JSON ペアを追加するには、AddPair を呼び出します。追加するペアは、Pair 引数として与えられた JSON ペア、または、Str パラメータと Val パラメータとして与えられた 2 つの独立した JSON オブジェクトのいずれかの方法で渡されます。
たとえ、選択したメソッドがオーバーロードされていても、渡す引数は NULL であってはいけません。