表示: DelphiC++
表示設定

System.SysUtils.Exception.ToString

出典: XE2 API Documentation

Delphi

function ToString: string; override;

C++

virtual System::UnicodeString __fastcall ToString(void);

プロパティ

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

説明

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

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

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

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

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

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

関連項目

他の言語