System.JSON.TJSONMapper.ToString

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

Delphi

function ToString(const AValue: T; AFormatIndent: Integer = 0): string; reintroduce; overload;
function ToString(const AValue: TArray<T>; AMaxCount: NativeInt = -1; AFormatIndent: Integer = 0): string; reintroduce; overload;

C++

HIDESBASE System::UnicodeString __fastcall ToString(const T AValue, int AFormatIndent = 0x0)/* overload */;
HIDESBASE System::UnicodeString __fastcall ToString(const System::DynamicArray<T> AValue, System::NativeInt AMaxCount = 0xffffffff, int AFormatIndent = 0x0)/* overload */;

プロパティ

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

説明

クラス名を表す文字列を返します。

System.JSON.TJSONMapper.ToString は System.TObject.ToString を継承しています。以下の内容はすべて System.TObject.ToString を参照しています。

クラス名を表す文字列を返します。

デフォルトでは、ToString は、呼び出し先のインスタンスのクラス名を表す文字列を返します。

例: TButton インスタンスに対して ToString を呼び出すと、"TButton" という文字列が返されます。

メモ: ToString は、ユーザー定義の派生クラスでオーバーライドするためのもので、ユーザー定義オブジェクトの文字列表現を定義するのに使用されます。

関連項目