System.Rtti.TRttiType.GetMethod
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.