System.Rtti.TInterceptAfterNotify
Delphi
TInterceptAfterNotify = reference to procedure(Instance: TObject;
Method: TRttiMethod; const Args: TArray<TValue>; var Result: TValue);
C++
__interface TInterceptAfterNotify : public System::IInterface
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
anonMethod class |
public | System.Rtti.pas System.Rtti.hpp |
System.Rtti | System.Rtti |
Description
This is the type of the System.Rtti.TVirtualMethodInterceptor.OnAfter event handler procedure.
Use TInterceptAfterNotify to implement the OnAfter event handler to respond when inherited virtual methods have been called.
Instance
is the instance on which a virtual method was called.
Args
is the list of arguments passed to the virtual method, wrapped as values of TValue. In the case of var
or out
parameters, these values may be further modified with effect on the caller - values corresponding to parameters passed by value are discarded after this event is invoked.
Method
is the RTTI object corresponding to the virtual method invoked on the instance.
Result
is the return value of the virtual method as set by the inherited implementation. It may be modified by the implementor of this event, but it should be assignment-compatible with the actual return type of the virtual method invoked.