API:System.IniFiles.TMemIniFile.EraseSection

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EraseSection(const Section: string); override;

C++

virtual void __fastcall EraseSection(const System::UnicodeString Section);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IniFiles.pas
System.IniFiles.hpp
System.IniFiles TMemIniFile

Description

Erases an entire section of an ini file.

System.IniFiles.TMemIniFile.EraseSection inherits from System.IniFiles.TCustomIniFile.EraseSection. All content below this line refers to System.IniFiles.TCustomIniFile.EraseSection.

Erases an entire section of an ini file.

Call EraseSection to remove a section, all its keys, and their data values from an ini file. Section identifies the ini file section to remove. If a section cannot be removed, an exception is raised.

See Also