System.Rtti.TRttiType.GetProperties

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetProperties: TArray<TRttiProperty>; virtual;

C++

virtual System::DynamicArray<TRttiProperty*> __fastcall GetProperties(void);

Properties

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

Description

Returns a list of all the properties that are part of the reflected type.

Use the GetProperties method to obtain a list of all the properties that are members of the reflected type. Although GetProperties is declared in TRttiType, it only works in RTTI objects describing types that actually allow properties, such as records, classes, and interfaces; for all other types, this method simply returns an empty array.

The list returned by GetProperties is ordered by the class/interface hierarchy. This means that the most recently included properties are located at the top of the list.

See Also

Code Examples