System.Rtti.TRttiObject.GetAttributes

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetAttributes: TArray<TCustomAttribute>; virtual;

C++

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

Properties

Type Visibility Source Unit Parent
function public
System.Rtti.pas
System.Rtti.hpp
System.Rtti TRttiObject

Description

Returns a list of attributes associated with the type or type member.

Call GetAttributes to obtain a list of attributes associated with the type or member described by the RTTI object.

All types and type members in Delphi can be annotated with attributes. Use the GetAttributes method to obtain instances of those attributes.

Note: GetAttributes returns a list of instances rather than a list of attribute types. GetAttributes instantiates each associated attribute.

See Also