System.Classes.TReader.BeginReferences
Delphi
procedure BeginReferences;
C++
void __fastcall BeginReferences();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TReader |
Description
Starts a block of commands that read components that might contain references to other components.
Do not call BeginReferences directly. BeginReferences is used internally for streaming properties that reference other components.
Following the call to BeginReferences, the reader object creates a list of all the objects read and their names. After all of the interdependent objects are read, FixupReferences is called to resolve the named references from the stream into instance references. Finally, call EndReferences to dispose of the fixup list.
BeginReferences is always used together with FixupReferences and EndReferences in a try...finally (Delphi) or try...__finally (C++) block.