System.Classes.TStrings.AddPair

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function AddPair(const Name, Value: string): TStrings; overload;
function AddPair(const Name, Value: string; AObject: TObject): TStrings; overload;

C++

TStrings* __fastcall AddPair(const System::UnicodeString Name, const System::UnicodeString Value)/* overload */;
TStrings* __fastcall AddPair(const System::UnicodeString Name, const System::UnicodeString Value, System::TObject* AObject)/* overload */;

プロパティ

種類 可視性 ソース ユニット
function public
System.Classes.pas
System.Classes.hpp
System.Classes TStrings


説明

フルーエント スタイルのコーディングによって、文字列のリストに名前/値ペアを追加します。

AddPair では、現在の NameValueSeparator を使用して名前/値ペアを追加します。また、AddPair を使って、名前/値ペアとそれに対応する AObject とを追加することもできます。

TStrings には文字列リストの参照が返されるため、フルーエント スタイルのコーディングによってリストの内容を設定することができます。

関連項目