System.Rtti.TRttiType.GetProperty

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetProperty(const AName: string): TRttiProperty; virtual;

C++

virtual TRttiProperty* __fastcall GetProperty(const System::UnicodeString AName);

Properties

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

Description

Returns an RTTI object for a property that is a member of the reflected type.

Use the GetProperty method to obtain an RTTI object for a property that is a member of the reflected type. Although GetProperty 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 nil.

The Name parameter specifies the name of the property to find.

See Also


Code Examples