Show: Delphi C++
Display Preferences

System.Rtti.TRttiType.GetMethod

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetMethod(const AName: string): TRttiMethod; virtual;

C++

virtual TRttiMethod* __fastcall GetMethod(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 method that is a member of the reflected type.

Use GetMethod to obtain an RTTI object for a method that is a member of the reflected type. Although GetMethod is declared in TRttiType, it only works in RTTI objects describing types that actually allow methods, such as records, classes, and interfaces; for all other types, this method simply returns nil.

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

See Also

Personal tools
In Other Languages
Previous Versions
Assistance