System.Rtti.TRttiType.GetDeclaredFields
Delphi
function GetDeclaredFields: TArray<TRttiField>; virtual;
C++
virtual System::DynamicArray<TRttiField*> __fastcall GetDeclaredFields();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Rtti.pas System.Rtti.hpp |
System.Rtti | TRttiType |
Description
Returns a list of all the fields declared in the reflected type.
Use the GetDeclaredFields method to obtain a list of all the fields (variables) that are declared in the reflected type. To obtain the list of the all the fields in the reflected type (including the inherited ones), use the GetFields method instead.
Note: GetDeclaredFields is only supported for class types.