API:System.Win.Registry.TRegistryIniFile.ReadSections
Delphi
procedure ReadSections(Strings: TStrings); overload; override;
procedure ReadSections(const Section: string; Strings: TStrings); overload; override;
C++
virtual void __fastcall ReadSections(System::Classes::TStrings* Strings)/* overload */;
virtual void __fastcall ReadSections(const System::UnicodeString Section, System::Classes::TStrings* Strings)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Win.Registry.pas System.Win.Registry.hpp |
System.Win.Registry | TRegistryIniFile |
Description
Reads the names of all sections in an ini file into a string list.
System.Win.Registry.TRegistryIniFile.ReadSections inherits from System.IniFiles.TCustomIniFile.ReadSections. All content below this line refers to System.IniFiles.TCustomIniFile.ReadSections.
Reads the names of all sections in an ini file into a string list.
Call ReadSections to retrieve the names of all sections in an ini file into a string list.
Strings specifies the string object to hold the retrieved names. Strings can point to a TStrings descendant, or to a component property, such as Items for a TListBox component.
Section identifies the section from which to retrieve a list of key names.
ReadSections retrieves the names of all subsections.