System.Rtti.TRttiType.GetDeclaredFields

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetDeclaredFields: TArray<TRttiField>; virtual;

C++

virtual System::DynamicArray<TRttiField*> __fastcall GetDeclaredFields(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 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.

See Also