System.Classes.TFindMethodEvent
Delphi
TFindMethodEvent = procedure (Reader: TReader; const MethodName: string;
var Address: Pointer; var Error: Boolean) of object;
C++
typedef void __fastcall (__closure *TFindMethodEvent)(TReader* Reader, const System::UnicodeString MethodName, void * &Address, bool &Error);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | System.Classes.pas System.Classes.hpp |
System.Classes | System.Classes |
Description
TFindMethodEvent is a procedure called by the TReader class OnFindMethod event.
Reader is the reader that is trying to locate an event handler.
MethodName is the name of the event handler that the reader is trying to locate.
Address is a pointer to the event handler. This pointer is nil (Delphi) or NULL (C++) if the reader can't locate the event handler. The event handler can use this parameter to supply a missing event handler or replace an existing one.
Error indicates whether the Address parameter points to the desired event handler. On Entry, Error is true if Address is nil (Delphi) or NULL (C++), and false if Address points to the event handler that the reader located. The event handler can change Error to true if it supplies a missing event handler.
TFindMethodEvent is for internal use only.