API:System.Rtti.TRttiInstanceType.GetAttributes

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

Delphi

function GetAttributes: TArray<TCustomAttribute>; override;

C++

virtual System::DynamicArray<System::TCustomAttribute*> __fastcall GetAttributes();

プロパティ

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

説明

その型と型メンバに関連付けられた属性のリストを返します。

System.Rtti.TRttiInstanceType.GetAttributes は System.Rtti.TRttiObject.GetAttributes を継承しています。以下の内容はすべて System.Rtti.TRttiObject.GetAttributes を参照しています。

その型と型メンバに関連付けられた属性のリストを返します。

GetAttributes メソッドを呼び出すと、RTTI オブジェクトに記述された型もしくはメンバに関連付けられた属性のリストを取得できます。

Delphi のすべての型および型メンバは属性に注釈がつけられます。GetAttributes メソッドを使用して、それら属性のインスタンスを取得できます。

メモ:  GetAttributes は、属性型ではなくインスタンスのリストを返します。 GetAttributes は、個々に関連付けられた属性をインスタンス化します。

関連項目