System.Rtti.TRttiType.GetField

提供:RAD Studio API Documentation

Delphi

function GetField(const AName: string): TRttiField; virtual;

C++

virtual TRttiField* __fastcall GetField(const System::UnicodeString AName);

プロパティ

種類 可視性 ソース ユニット 親
function public
System.Rtti.pas
System.Rtti.hpp
System.Rtti TRttiType

説明

リフレクションされた型のメンバである項目の RTTI オブジェクトを返します。

GetField メソッドを使用すると、リフレクションされた型のメンバである項目の RTTI オブジェクトを取得できます。 GetField は TRttiType 内で宣言されますが、例えば records および classes のように、項目が実際に使用できる型を記述する RTTI オブジェクトの中だけで機能します。 他の型の場合、このメソッドは単に nil を返します。

Name パラメータは、検索中の項目名を示します。

関連項目